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

Commit 361fe599 by Sushant

fix(query): properly return for FOREIGNKEYS type

1 parent a6c1f8f9
......@@ -235,7 +235,7 @@ class Query extends AbstractQuery {
} else if (this.isVersionQuery()) {
result = data[0].version;
} else if (this.isForeignKeysQuery()) {
result = data;
result = [data];
} else if (this.isInsertQuery() || this.isUpdateQuery()) {
result = [result, rowCount];
} else if (this.isShowConstraintsQuery()) {
......
......@@ -138,7 +138,7 @@ class Query extends AbstractQuery {
} else if (this.isVersionQuery()) {
result = data[0].version;
} else if (this.isForeignKeysQuery()) {
result = data;
result = [data];
} else if (this.isInsertQuery() || this.isUpdateQuery()) {
result = [result, data.affectedRows];
} else if (this.isShowConstraintsQuery()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!