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

Commit 28d9db84 by Benjamin Woodruff

Small bugfixes, push to get travis to rebuild

1 parent db4a252c
Showing with 2 additions and 2 deletions
......@@ -18,7 +18,7 @@ SqlString.escape = function(val, stringifyObjects, timeZone, dialect) {
// SQLite doesn't have true/false support. MySQL aliases true/false to 1/0
// for us. Postgres actually has a boolean type with true/false literals,
// but sequelize doesn't use it yet.
return dialect !== 'mysql' ? +!!val : '' + !!val;
return dialect === 'sqlite' ? +!!val : ('' + !!val);
case 'number': return val+'';
}
......@@ -105,7 +105,7 @@ SqlString.dateToString = function(date, timeZone, dialect) {
}
}
return moment(dt).format("YYYY-MM-DD HH:mm:ss") + (dialect === 'mysql' ? '.0Z' : '');
return moment(dt).format("YYYY-MM-DD HH:mm:ss");
};
SqlString.bufferToString = function(buffer) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!