You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somewhere along the line, the IN (value list) operator was broken:
jaypipes@uberbox:~/src/github.com/jaypipes/sqltoast/_build$ ./sqltoaster/sqltoaster "SELECT * FROM t1 WHERE a IN (1, 2)"
Syntax error.
Expected to find ')' but found literal[2]
SELECT * FROM t1 WHERE a IN (1, 2)
^^^
(took 40869 nanoseconds)
jaypipes@uberbox:~/src/github.com/jaypipes/sqltoast/_build$ ./sqltoaster/sqltoaster "SELECT * FROM t1 WHERE a IN (1)"
Syntax error.
Expected to find ')' but found symbol[EOS]
SELECT * FROM t1 WHERE a IN (1)
^
(took 45609 nanoseconds)
The IN (subquery) operator works just fine though:
jaypipes@uberbox:~/src/github.com/jaypipes/sqltoast/_build$ ./sqltoaster/sqltoaster "SELECT * FROM t1 WHERE a IN (SELECT b FROM t2)"
OK
statements[0]:
<statement: SELECT
selected columns:
0: *
referenced tables:
0: t1
where:
column-reference[a] IN <statement: SELECT
selected columns:
0: column-reference[b]
referenced tables:
0: t2>
>
(took 31314 nanoseconds)
The text was updated successfully, but these errors were encountered:
A stray call to advance the lexer after parsing a value expression was
causing the IN (<value list>) operator to fail parsing. This patch fixes
that issue and adds tests to prevent regressions in the future.
Fixes Issue #93
Somewhere along the line, the IN (value list) operator was broken:
The IN (subquery) operator works just fine though:
The text was updated successfully, but these errors were encountered: