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

Commit d8576300 by Mick Hansen

test(unit/sql): fix bad default case

1 parent 746c54f6
Showing with 4 additions and 1 deletions
...@@ -6,6 +6,8 @@ var Support = require(__dirname + '/../support') ...@@ -6,6 +6,8 @@ var Support = require(__dirname + '/../support')
, current = Support.sequelize , current = Support.sequelize
, sql = current.dialect.QueryGenerator; , sql = current.dialect.QueryGenerator;
// Notice: [] will be replaced by dialect specific tick/quote character when there is not dialect specific expectation but only a default expectation
suite('SQL', function() { suite('SQL', function() {
suite('whereQuery', function () { suite('whereQuery', function () {
var testsql = function (params, options, expectation) { var testsql = function (params, options, expectation) {
...@@ -75,7 +77,8 @@ suite('SQL', function() { ...@@ -75,7 +77,8 @@ suite('SQL', function() {
testsql('deleted', { testsql('deleted', {
$not: true $not: true
}, { }, {
default: "[deleted] NOT 'true'", default: "[deleted] NOT true",
mssql: "[deleted] NOT 'true'",
sqlite: "`deleted` NOT 1" sqlite: "`deleted` NOT 1"
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!