Fix comparison for null and boolean values

This commit is contained in:
Raymond Feng 2014-06-10 16:06:16 -07:00
parent d97e05fb4a
commit 99b2950dab
1 changed files with 1 additions and 0 deletions

View File

@ -306,6 +306,7 @@ MySQL.prototype.toDatabase = function (prop, val) {
return this.toDatabase(prop, val); return this.toDatabase(prop, val);
} }
} }
return this.toDatabase(prop, val);
} }
if (!prop) { if (!prop) {
return this.client.escape(val); return this.client.escape(val);