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

Commit 6fb9e648 by Idris Mokhtarzada

Postgres: When quoteIdentifiers is false, don't delete associated attributes from query result

1 parent ada25f06
Showing with 1 additions and 1 deletions
......@@ -204,7 +204,7 @@ module.exports = (function() {
rows.forEach(function(row) {
Utils._.keys(row).forEach(function(key) {
var targetAttr = attrsMap[key];
if (targetAttr !== key) {
if (typeof targetAttr === 'string' && targetAttr !== key) {
row[targetAttr] = row[key];
delete row[key];
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!