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

Commit 2bba5462 by Mick Hansen

Merge pull request #2339 from 3ch01c/sqlite

Added handler for PRAGMA foreign_key_list query in sqlite dialect
2 parents 7b8c2bb2 cd853d11
Showing with 2 additions and 0 deletions
...@@ -129,6 +129,8 @@ module.exports = (function() { ...@@ -129,6 +129,8 @@ module.exports = (function() {
result = results[0]; result = results[0];
} else if (self.sql.indexOf('PRAGMA foreign_keys') !== -1) { } else if (self.sql.indexOf('PRAGMA foreign_keys') !== -1) {
result = results; result = results;
} else if (self.sql.indexOf('PRAGMA foreign_key_list') !== -1) {
result = results;
} else if ([QueryTypes.BULKUPDATE, QueryTypes.BULKDELETE].indexOf(self.options.type) !== -1) { } else if ([QueryTypes.BULKUPDATE, QueryTypes.BULKDELETE].indexOf(self.options.type) !== -1) {
result = metaData.changes; result = metaData.changes;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!