From 91bc02ac6e415be39907990b9ab8fdeb730f8c24 Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Thu, 14 Sep 2023 15:41:19 +0100 Subject: [PATCH] Fix: Perform nil check for join constraint Closes #2729. --- internal/engine/sqlite/convert.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/engine/sqlite/convert.go b/internal/engine/sqlite/convert.go index d1e9a8c050..513aa62ec8 100644 --- a/internal/engine/sqlite/convert.go +++ b/internal/engine/sqlite/convert.go @@ -553,6 +553,8 @@ func (c *cc) getTables(core *parser.Select_coreContext) []ast.Node { } jc := join.Join_constraint(i) switch { + case jc == nil: + // do nothing case jc.ON_() != nil: joinExpr.Quals = c.convert(jc.Expr()) case jc.USING_() != nil: