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

Commit 818f7c9d by Mick Hansen

fix(transaction): postgres should not attempt to set autocommit off inside trans…

…action, is default and does not need to be set
1 parent 3347c77d
Showing with 14 additions and 0 deletions
...@@ -910,6 +910,20 @@ module.exports = (function() { ...@@ -910,6 +910,20 @@ module.exports = (function() {
*/ */
dropForeignKeyQuery: function(tableName, foreignKey) { dropForeignKeyQuery: function(tableName, foreignKey) {
return 'ALTER TABLE ' + this.quoteTable(tableName) + ' DROP CONSTRAINT ' + this.quoteIdentifier(foreignKey) + ';'; return 'ALTER TABLE ' + this.quoteTable(tableName) + ' DROP CONSTRAINT ' + this.quoteIdentifier(foreignKey) + ';';
},
setAutocommitQuery: function(value, options) {
if (options.parent) {
return;
}
// POSTGRES does not support setting AUTOCOMMIT = OFF
if (!value) {
return;
}
return AbstractQueryGenerator.setAutocommitQuery.call(this);
} }
}; };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!