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

Commit ab1eb32c by Mick Hansen

DEFAULT support is not the same as DEFAULT VALUES support

1 parent cf21f351
......@@ -4,7 +4,8 @@ var AbstractDialect = function() {
AbstractDialect.prototype.supports = {
'RETURNING': false,
'DEFAULT': true
'DEFAULT': true,
'DEFAULT VALUES': false
}
module.exports = AbstractDialect
\ No newline at end of file
......@@ -113,7 +113,7 @@ module.exports = (function() {
, key
, value
if (this._dialect.supports['DEFAULT']) {
if (this._dialect.supports['DEFAULT VALUES']) {
emptyQuery += " DEFAULT VALUES"
}
......
......@@ -6,7 +6,8 @@ var PostgresDialect = function(sequelize) {
}
PostgresDialect.prototype.supports = _.extend(Abstract.prototype.supports, {
'RETURNING': true
'RETURNING': true,
'DEFAULT VALUES': true
})
module.exports = PostgresDialect
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!