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

Commit 3a0b5452 by ekmartin

Make sure truncate doesnt try to return affected rows for MSSQL

1 parent dff0cfd6
Showing with 1 additions and 1 deletions
......@@ -149,7 +149,7 @@ module.exports = (function() {
} else if (this.isBulkUpdateQuery()) {
result = data.length;
} else if (this.isBulkDeleteQuery()){
result = data[0].AFFECTEDROWS;
result = data[0] && data[0].AFFECTEDROWS;
} else if (this.isVersionQuery()) {
result = data[0].version;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!