不要怂,就是干,撸起袖子干!

Commit 99756325 by Eugene Korbut

sqlite: fix undefined value bug

1 parent b37e78af
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ var Utils = require("../../utils") ...@@ -4,7 +4,7 @@ var Utils = require("../../utils")
var escape = function(str) { var escape = function(str) {
if (typeof str === 'string') { if (typeof str === 'string') {
return "'" + str.replace(/'/g, "''") + "'" return "'" + str.replace(/'/g, "''") + "'"
} else if(str === null) { } else if(str === null || str === undefined) {
return 'NULL' return 'NULL'
} else { } else {
return str return str
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!