Skip to content

Commit 2adb18f

Browse files
committed
fix parsing Expr_listContext for SQLite
1 parent 44c3ec7 commit 2adb18f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/engine/sqlite/convert.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,11 @@ func (c *cc) convertMultiSelect_stmtContext(n *parser.Select_stmtContext) ast.No
355355
}
356356

357357
func (c *cc) convertExprListContext(n *parser.Expr_listContext) ast.Node {
358-
return c.convertExprLists(n.AllExpr())
358+
list := &ast.List{Items: []ast.Node{}}
359+
for _, e := range n.AllExpr() {
360+
list.Items = append(list.Items, c.convert(e))
361+
}
362+
return list
359363
}
360364

361365
func (c *cc) getTables(core *parser.Select_coreContext) []ast.Node {

0 commit comments

Comments
 (0)