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

Commit a58acecd by Jan Aagaard Meier

Fix addIndex unit test for mssql

1 parent 889599fc
Showing with 2 additions and 1 deletions
...@@ -21,7 +21,8 @@ suite(Support.getTestDialectTeaser('SQL'), function() { ...@@ -21,7 +21,8 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
test('POJO field', function () { test('POJO field', function () {
expectsql(sql.addIndexQuery('table', [{ attribute: 'column', collate: 'BINARY', length: 5, order: 'DESC'}], {}, 'table'), { expectsql(sql.addIndexQuery('table', [{ attribute: 'column', collate: 'BINARY', length: 5, order: 'DESC'}], {}, 'table'), {
default: 'CREATE INDEX [table_column] ON [table] ([column] COLLATE [BINARY] DESC)', default: 'CREATE INDEX [table_column] ON [table] ([column] COLLATE [BINARY] DESC)',
mysql: 'CREATE INDEX `table_column` ON `table` (`column`(5) DESC)' mysql: 'CREATE INDEX `table_column` ON `table` (`column`(5) DESC)',
mssql: 'CREATE INDEX [table_column] ON [table] ([column] DESC)'
}); });
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!