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

Commit ec6b1206 by Meg Sharkey

bug fix for null value

1 parent 7929b53e
...@@ -189,7 +189,7 @@ var QueryGenerator = module.exports = { ...@@ -189,7 +189,7 @@ var QueryGenerator = module.exports = {
return [_key, _value].join(" IN ") return [_key, _value].join(" IN ")
} }
else if value && (typeof value == 'object') { else if ((value) && (typeof value == 'object')) {
//using as sentinel for join column => value //using as sentinel for join column => value
_value = value.join.split('.').map(function(col){return Utils.addTicks(col)}).join(".") _value = value.join.split('.').map(function(col){return Utils.addTicks(col)}).join(".")
return [_key, _value].join("=") return [_key, _value].join("=")
......
{ {
"name": "sqlize", "name": "sqlize",
"description": "Modified version of sequelize - MySQL ORM for Node.JS", "description": "Modified version of sequelize - MySQL ORM for Node.JS",
"version": "0.2.1", "version": "0.2.2",
"author": "Meg Sharkey <meg@metamx.com>", "author": "Meg Sharkey <meg@metamx.com>",
"contributors": [ "contributors": [
{ "name": "Sascha Depold", "email": "sascha@depold.com" }, { "name": "Sascha Depold", "email": "sascha@depold.com" },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!