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

Commit ada25f06 by Idris Mokhtarzada

Always quote identifiers after AS in join queries. Fixes #1589

1 parent 72b97eff
Showing with 1 additions and 1 deletions
......@@ -1005,7 +1005,7 @@ module.exports = (function() {
} else {
prefix = self.quoteIdentifier(as) + '.' + self.quoteIdentifier(attr);
}
return prefix + ' AS ' + self.quoteIdentifier(as + '.' + attrAs);
return prefix + ' AS ' + self.quoteIdentifier(as + '.' + attrAs, true);
});
if (include.subQuery && subQuery) {
subQueryAttributes = subQueryAttributes.concat(attributes);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!