Skip to content

Commit fd3ecef

Browse files
committed
Merge pull request brianc#129 from janstice/patch-1
Allow qualified column names w/ aggregate functions
2 parents e5316a6 + 9c1c2d2 commit fd3ecef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/dialect/postgres.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,10 @@ Postgres.prototype.visitColumn = function(columnNode) {
463463
}
464464
if(!this._visitedInsert && !this._visitingUpdateTargetColumn && !this._visitingCreate && !this._visitingAlter) {
465465
if(table.alias) {
466-
txt = this.quote(table.alias);
466+
txt += this.quote(table.alias);
467467
} else {
468468
if(table.getSchema()) {
469-
txt = this.quote(table.getSchema());
469+
txt += this.quote(table.getSchema());
470470
txt += '.';
471471
}
472472
txt += this.quote(table.getName());

0 commit comments

Comments
 (0)