Skip to content

Commit 182f8cb

Browse files
committed
fix(engine/sqlite): fixed detection of column alias without AS
fix #2559
1 parent fd108fa commit 182f8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/engine/sqlite/convert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ func (c *cc) getCols(core *parser.Select_coreContext) []ast.Node {
492492
continue
493493
}
494494

495-
if col.AS_() != nil {
495+
if col.Column_alias() != nil {
496496
name := identifier(col.Column_alias().GetText())
497497
target.Name = &name
498498
}

0 commit comments

Comments
 (0)