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

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() { ...@@ -4,7 +4,8 @@ var AbstractDialect = function() {
AbstractDialect.prototype.supports = { AbstractDialect.prototype.supports = {
'RETURNING': false, 'RETURNING': false,
'DEFAULT': true 'DEFAULT': true,
'DEFAULT VALUES': false
} }
module.exports = AbstractDialect module.exports = AbstractDialect
\ No newline at end of file
...@@ -113,7 +113,7 @@ module.exports = (function() { ...@@ -113,7 +113,7 @@ module.exports = (function() {
, key , key
, value , value
if (this._dialect.supports['DEFAULT']) { if (this._dialect.supports['DEFAULT VALUES']) {
emptyQuery += " DEFAULT VALUES" emptyQuery += " DEFAULT VALUES"
} }
......
...@@ -6,7 +6,8 @@ var PostgresDialect = function(sequelize) { ...@@ -6,7 +6,8 @@ var PostgresDialect = function(sequelize) {
} }
PostgresDialect.prototype.supports = _.extend(Abstract.prototype.supports, { PostgresDialect.prototype.supports = _.extend(Abstract.prototype.supports, {
'RETURNING': true 'RETURNING': true,
'DEFAULT VALUES': true
}) })
module.exports = PostgresDialect 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!