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

Commit dff0cfd6 by ekmartin

Update the MSSQL truncate syntax

1 parent 2b889ed7
Showing with 1 additions and 1 deletions
......@@ -264,7 +264,7 @@ module.exports = (function() {
var table = this.quoteTable(tableName);
if (options.truncate === true) {
// Truncate does not allow LIMIT and WHERE
return 'TRUNCATE ' + table;
return 'TRUNCATE TABLE ' + table;
}
where = this.getWhereConditions(where);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!