-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Panic on missing join clause #43
Comments
If you are interested, you should be able to generate more crash tests by patching this with: misc % diff -u test-grammar.pegjs*
--- test-grammar.pegjs 2024-02-26 20:00:37.000000000 +0100
+++ test-grammar.pegjs.bk 2024-02-26 20:00:06.000000000 +0100
@@ -42,7 +42,8 @@
return b;
}
test_type_start
- = "do_execsql_test"
+ = "do_catchsql_test"
+ / "do_execsql_test"
/ "do_eqp_test"
/ "execsql"
/ "eqp" Create a symlink to a local clone of official SQLite3 repository: % cd sqlite-parser/test
% ln -s ~/sqlite/test raw Launch % cd sqlite-parser/test/misc
% sh process-tests.sh And then with % find ~/sqlite-parser/test/sql/official-suite/ -type f | xargs ./target/debug/examples/sql_cmds 2> errors.txt > /dev/null |
oh that's cool! thanks @gwenn I'll give it a shot 👍 |
SELECT (SELECT max(x)OVER(ORDER BY x) % min(x)OVER(ORDER BY CASE x WHEN 889 THEN x WHEN x THEN x END)) FROM (SELECT (SELECT sum(CAST(a IN(SELECT (SELECT max(x)OVER(ORDER BY CASE x WHEN 889 THEN 299 WHEN 863 THEN 863 END)) FROM (SELECT (SELECT sum(CAST((SELECT (SELECT max(x)OVER(ORDER BY x) / min(x)OVER(ORDER BY CASE x WHEN 889 THEN 299 WHEN -true THEN 863 END)) FROM (SELECT (SELECT sum(CAST(a IN(SELECT (SELECT max(x) & sum ( a )OVER(ORDER BY CASE x WHEN -8 THEN 299 WHEN 863 THEN 863 END)) FROM (SELECT (SELECT sum(CAST(a AS )) FROM t1) AS x FROM t1)) AS t1 )) FROM t1) AS x FROM t1)) AS x )) FROM t1) AS x FROM t1)) AS real)) FROM t1) AS x FROM t1)
; which reduces to SELECT sum(CAST(a AS )) FROM t1 => Line 915 in 3910b46
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been fuzzing the parser and fixed a common cause of panic in tursodatabase/libsql#1209
If the fix suits you, open a PR here.
The text was updated successfully, but these errors were encountered: