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

Commit 239a493b by Mick Hansen

fix mssql schema index test

1 parent b5288620
......@@ -479,10 +479,9 @@ module.exports = (function() {
}
options.prefix = options.prefix || rawTablename || tableName;
if (options.prefix) {
options.prefix = options.prefix.replace(/\./g, '_');
options.prefix = options.prefix.replace(/\"\'/g, '');
options.prefix = options.prefix.replace(/(\"|\')/g, '');
}
fieldsSql = options.fields.map(function(field) {
......
......@@ -20,7 +20,10 @@ suite(Support.getTestDialectTeaser('SQL'), function() {
default: 'CREATE INDEX [schema_table_column1_column2] ON [schema].[table] ([column1], [column2])'
});
expectsql(sql.addIndexQuery('"schema"."table"', ['column1', 'column2'], {}), {
expectsql(sql.addIndexQuery(sql.quoteTable(sql.addSchema({
schema: 'schema',
tableName: 'table'
})), ['column1', 'column2'], {}), {
default: 'CREATE INDEX [schema_table_column1_column2] ON [schema].[table] ([column1], [column2])'
});
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!