ladybird/Userland/Libraries/LibSQL/AST
Jan de Visser c369626ac1 LibSQL: Gracefully react to unimplemented valid SQL
Fixes a crash that was caused by a syntax error which is difficult to
catch by the parser: usually identifiers are accepted in column lists,
but they are not in a list of column values to be inserted in an INSERT.

Fixed this by putting in a heuristic check; we probably need a better
way to do this.

Included tests for this case.

Also introduced a new SQL Error code, `NotYetImplemented`, and return
that instead of crashing when encountering unimplemented SQL.
2021-12-04 20:49:22 +03:30
..
AST.h LibSQL: Add current statement to the ExecutionContext 2021-11-10 14:47:49 +01:00
CreateSchema.cpp LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
CreateTable.cpp LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
Expression.cpp LibSQL: Gracefully react to unimplemented valid SQL 2021-12-04 20:49:22 +03:30
Insert.cpp LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
Lexer.cpp LibSQL: Make lexer and parser more standard SQL compliant 2021-06-24 00:36:53 +02:00
Lexer.h LibSQL: Make lexer and parser more standard SQL compliant 2021-06-24 00:36:53 +02:00
Parser.cpp Everywhere: Prevent risky implicit casts of (Nonnull)RefPtr 2021-09-03 23:20:23 +02:00
Parser.h LibSQL: Replace Optional<NonnullRefPtr<T>> with RefPtr<T> 2021-09-03 15:36:51 +02:00
Select.cpp LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
Statement.cpp LibSQL: Add current statement to the ExecutionContext 2021-11-10 14:47:49 +01:00
SyntaxHighlighter.cpp LibSQL: Make lexer and parser more standard SQL compliant 2021-06-24 00:36:53 +02:00
SyntaxHighlighter.h LibSQL: Move Lexer and Parser machinery to AST directory 2021-06-24 00:36:53 +02:00
Token.cpp LibSQL: Move Lexer and Parser machinery to AST directory 2021-06-24 00:36:53 +02:00
Token.h LibSQL: Invent statement execution machinery and CREATE SCHEMA statement 2021-07-08 17:55:59 +04:30