diff --git a/lib/adapters/mysql.js b/lib/adapters/mysql.js index 563559f2..58dfb37a 100644 --- a/lib/adapters/mysql.js +++ b/lib/adapters/mysql.js @@ -100,6 +100,7 @@ MySQL.prototype.toDatabase = function (prop, val) { ].join('-'); return this.client.escape(val); } + if (prop.type.name == "Boolean") return val ? 1 : 0; return this.client.escape(val.toString()); };