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

Commit a9c51a84 by Dirk Raeder

Fixes #9182 - renameColumnQuery returns quoted column name

1 parent 5a79c52a
Showing with 2 additions and 2 deletions
...@@ -384,10 +384,10 @@ module.exports = (function() { ...@@ -384,10 +384,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) ? '`' + attrNameBefore + '` AS `' + attr + '`' : '`' + attr + '`'
}.bind(this)).join(', '), }.bind(this)).join(', '),
attributeNamesExport: Utils._.keys(attributes).map(function(attr) { attributeNamesExport: Utils._.keys(attributes).map(function(attr) {
return attr return '`' + 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!