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

Commit 1f17bece by overlookmotel Committed by Jan Aagaard Meier

Fix QueryInterface#showIndex not passing transaction

1 parent 61e1cfe9
Showing with 2 additions and 0 deletions
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
- [FIXED] Fix isEmail validator to allow args: true [#3770](https://github.com/sequelize/sequelize/issues/3770) - [FIXED] Fix isEmail validator to allow args: true [#3770](https://github.com/sequelize/sequelize/issues/3770)
- [FIXED] Fix some occasions where `options.logging` was not used correctly - [FIXED] Fix some occasions where `options.logging` was not used correctly
- [FIXED] Fix `Model#destroy()` to correctly use `options.transaction` - [FIXED] Fix `Model#destroy()` to correctly use `options.transaction`
- [FIXED] Fix `QueryInterface#showIndex()` to correctly pass on `options.transaction`
# 3.1.1 # 3.1.1
- [FIXED] Always quote aliases, even when quoteIdentifiers is false [#1589](https://github.com/sequelize/sequelize/issues/1589) - [FIXED] Always quote aliases, even when quoteIdentifiers is false [#1589](https://github.com/sequelize/sequelize/issues/1589)
......
...@@ -454,6 +454,7 @@ module.exports = (function() { ...@@ -454,6 +454,7 @@ module.exports = (function() {
var sql = this.QueryGenerator.showIndexesQuery(tableName, options); var sql = this.QueryGenerator.showIndexesQuery(tableName, options);
options = options || {}; options = options || {};
return this.sequelize.query(sql, { return this.sequelize.query(sql, {
transaction: options.transaction,
logging: options.logging, logging: options.logging,
type: QueryTypes.SHOWINDEXES type: QueryTypes.SHOWINDEXES
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!