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

Commit c3a4ba9f by Mick Hansen

fix bad sql test for sqlite

1 parent 50a3b928
...@@ -1772,7 +1772,7 @@ module.exports = (function() { ...@@ -1772,7 +1772,7 @@ module.exports = (function() {
$where[$prop] = $item; $where[$prop] = $item;
$key = $baseKey; $key = $baseKey;
if (typeof $item === "number") { if (typeof $item === 'number') {
$key += '::integer'; $key += '::integer';
} }
......
...@@ -510,7 +510,7 @@ if (dialect === 'sqlite') { ...@@ -510,7 +510,7 @@ if (dialect === 'sqlite') {
], ],
expectation: 'CREATE INDEX `user_username_is_admin` ON `User` (`username` ASC, `isAdmin`)' expectation: 'CREATE INDEX `user_username_is_admin` ON `User` (`username` ASC, `isAdmin`)'
}, { }, {
arguments: ['User', ['username', 'isAdmin'], { indexName: 'bar'}, {}, 'User'], arguments: ['User', ['username', 'isAdmin'], { indexName: 'bar'}, 'User'],
expectation: 'CREATE INDEX `bar` ON `User` (`username`, `isAdmin`)' expectation: 'CREATE INDEX `bar` ON `User` (`username`, `isAdmin`)'
}, { }, {
arguments: ['User', ['fieldB', {attribute: 'fieldA', collate: 'en_US', order: 'DESC', length: 5}], { arguments: ['User', ['fieldB', {attribute: 'fieldA', collate: 'en_US', order: 'DESC', length: 5}], {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!