Skip to content

Commit 0c67d79

Browse files
committed
accept column aliases without "as"
1 parent 78c4340 commit 0c67d79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/client/compiler/parser/Parser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,8 +2053,8 @@ export class Parser {
20532053
position: columnTerm.position
20542054
}
20552055
columns.push(column);
2056-
if (this.comesToken(TokenType.keywordAs)) {
2057-
this.nextToken();
2056+
if (this.comesToken(TokenType.keywordAs) || this.comesToken(TokenType.identifier)) {
2057+
this.skip(TokenType.keywordAs);
20582058
if (this.expect(TokenType.identifier, false)) {
20592059
column.alias = "" + this.cct.value;
20602060
}

0 commit comments

Comments
 (0)