Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

sqlite: fix undefined value bug

  • Loading branch information...
commit 99756325f6b0175a773dfec5d73a400cd674d1fd 1 parent b37e78a
@vlmonk vlmonk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/dialects/sqlite/query-generator.js
View
2  lib/dialects/sqlite/query-generator.js
@@ -4,7 +4,7 @@ var Utils = require("../../utils")
var escape = function(str) {
if (typeof str === 'string') {
return "'" + str.replace(/'/g, "''") + "'"
- } else if(str === null) {
+ } else if(str === null || str === undefined) {
return 'NULL'
} else {
return str
Please sign in to comment.
Something went wrong with that request. Please try again.