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

Commit 55507dd1 by Mick Hansen

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

1 parent 4d624a11
Showing with 5 additions and 1 deletions
......@@ -197,6 +197,10 @@ var Support = {
var expectation = expectations[Support.sequelize.dialect.name];
if (!expectation) {
if (Support.sequelize.dialect.name === 'mariadb') {
expectation = expectations['mysql'];
}
expectation = expectations['default']
.replace(/\[/g, Support.sequelize.dialect.TICK_CHAR_LEFT)
.replace(/\]/g, Support.sequelize.dialect.TICK_CHAR_RIGHT);
......
......@@ -107,7 +107,7 @@ suite('SQL', function() {
postgres: '"field" = E\'\\\\x53657175656c697a65\'',
sqlite: "`field` = X'53657175656c697a65'",
mysql: "`field` = X'53657175656c697a65'",
mssql: "[field] = 0x'53657175656c697a65'"
mssql: "[field] = 0x53657175656c697a65"
});
});
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!