From 08d53da0281edbaaffd5d182c979ede8193f54f0 Mon Sep 17 00:00:00 2001 From: Rob Britton Date: Sat, 23 Feb 2013 14:16:38 -0500 Subject: [PATCH] Added boolean support for sqlite. --- lib/Drivers/DML/sqlite.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Drivers/DML/sqlite.js b/lib/Drivers/DML/sqlite.js index da6e7dc7..94ee22cf 100644 --- a/lib/Drivers/DML/sqlite.js +++ b/lib/Drivers/DML/sqlite.js @@ -181,6 +181,8 @@ Driver.prototype.escape = function (value) { switch (typeof value) { case "number": return value; + case "boolean": + return value ? 1 : 0; } return "'" + value.replace(/\'/g, "''") + "'";