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

Commit c7691f36 by Mick Hansen

fix: proper mssql buffer escape expectation and mariadb should use mysql expectation as default

1 parent 55507dd1
Showing with 4 additions and 4 deletions
...@@ -196,11 +196,11 @@ var Support = { ...@@ -196,11 +196,11 @@ var Support = {
expectsql: function(query, expectations) { expectsql: function(query, expectations) {
var expectation = expectations[Support.sequelize.dialect.name]; var expectation = expectations[Support.sequelize.dialect.name];
if (!expectation) { if (!expectation && Support.sequelize.dialect.name === 'mariadb') {
if (Support.sequelize.dialect.name === 'mariadb') { expectation = expectations['mysql'];
expectation = expectations['mysql']; }
}
if (!expectation) {
expectation = expectations['default'] expectation = expectations['default']
.replace(/\[/g, Support.sequelize.dialect.TICK_CHAR_LEFT) .replace(/\[/g, Support.sequelize.dialect.TICK_CHAR_LEFT)
.replace(/\]/g, Support.sequelize.dialect.TICK_CHAR_RIGHT); .replace(/\]/g, Support.sequelize.dialect.TICK_CHAR_RIGHT);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!