Skip to content

Commit aa98ea9

Browse files
additional check of alias as string
1 parent 8012e59 commit aa98ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dialect/postgres.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ Postgres.prototype.visitTable = function(tableNode) {
689689
txt += '.';
690690
}
691691
txt += this.quote(table.getName());
692-
if(table.alias) {
692+
if(typeof table.alias === 'string') {
693693
txt += this._aliasText + this.quote(table.alias);
694694
}
695695
return [txt];

0 commit comments

Comments
 (0)