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

Commit 4e0ccc22 by Mick Hansen

Merge pull request #1984 from db6edr/fix-sqlite-rename-column-fails-master

renameColumnQuery returns qouted column names (for branch master)
2 parents 1ba7f515 11f877ef
Showing with 2 additions and 2 deletions
...@@ -366,10 +366,10 @@ module.exports = (function() { ...@@ -366,10 +366,10 @@ module.exports = (function() {
return Utils._.template(query, { return Utils._.template(query, {
tableName: tableName, tableName: tableName,
attributeNamesImport: Utils._.keys(attributes).map(function(attr) { attributeNamesImport: Utils._.keys(attributes).map(function(attr) {
return (attrNameAfter === attr) ? attrNameBefore + ' AS ' + attr : attr; return (attrNameAfter === attr) ? this.quoteIdentifier(attrNameBefore) + ' AS ' + this.quoteIdentifier(attr) : this.quoteIdentifier(attr);
}.bind(this)).join(', '), }.bind(this)).join(', '),
attributeNamesExport: Utils._.keys(attributes).map(function(attr) { attributeNamesExport: Utils._.keys(attributes).map(function(attr) {
return attr; return this.quoteIdentifier(attr);
}.bind(this)).join(', ') }.bind(this)).join(', ')
}); });
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!