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

Commit ccef1508 by Mick Hansen

fix mysql tests

1 parent 15e961e5
......@@ -329,8 +329,7 @@ module.exports = (function() {
schemaDelimiter:
schemaDelimiter
}
}),
this.QueryGenerator.options.quoteIdentifiers
})
)
sql = 'DESCRIBE ' + table + ';'
}
......
......@@ -29,7 +29,7 @@ if (dialect.match(/^postgres/)) {
it('should be able to search within an array', function(done) {
this.User.all({where: {email: ['hello', 'world']}}).on('sql', function(sql) {
expect(sql).to.equal('SELECT * FROM "Users" WHERE "Users"."email" && ARRAY[\'hello\',\'world\']::TEXT[];')
expect(sql).to.equal('SELECT * FROM "Users" AS "User" WHERE "User"."email" && ARRAY[\'hello\',\'world\']::TEXT[];')
done()
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!