1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 22:05:07 +00:00
serenity/Userland/Libraries/LibSQL
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 LibSQL: Gracefully react to unimplemented valid SQL 2021-12-04 20:49:22 +03:30
BTree.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
BTree.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
BTreeIterator.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
CMakeLists.txt LibSQL: Add current statement to the ExecutionContext 2021-11-10 14:47:49 +01:00
Database.cpp LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
Database.h LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
Forward.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
HashIndex.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
HashIndex.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Heap.cpp LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
Heap.h LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
Index.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Index.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Key.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Key.h LibSQL: Resolve cyclic dependency 2021-10-06 23:52:40 +01:00
Meta.cpp LibSQL: Add 'schema' and 'table' to TupleElementDescriptor 2021-11-10 14:47:49 +01:00
Meta.h Libraries: Fix visibility of Object-derivative constructors 2021-11-02 22:56:53 +01:00
Row.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Row.h LibSQL: Resolve cyclic dependency 2021-10-06 23:52:40 +01:00
Serializer.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Serializer.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
SQLClient.cpp SQLServer+SQL+LibSQL: Allow sql client to specify the database name 2021-10-05 02:22:19 +02:00
SQLClient.h SQLServer+SQL+LibSQL: Allow sql client to specify the database name 2021-10-05 02:22:19 +02:00
SQLResult.h LibSQL: Improve error handling 2021-12-04 20:49:22 +03:30
TreeNode.cpp LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00
Tuple.cpp LibSQL: Add the 'extend' operation to the Tuple class 2021-11-10 14:47:49 +01:00
Tuple.h LibSQL: Add the 'extend' operation to the Tuple class 2021-11-10 14:47:49 +01:00
TupleDescriptor.h LibSQL: Add 'schema' and 'table' to TupleElementDescriptor 2021-11-10 14:47:49 +01:00
Type.h LibSQL: Allow expressions and column names in SELECT ... FROM 2021-10-05 02:22:19 +02:00
Value.cpp LibSQL: Relax assignment rules for Null Values 2021-11-10 14:47:49 +01:00
Value.h LibSQL: Add 'schema' and 'table' to TupleElementDescriptor 2021-11-10 14:47:49 +01:00
ValueImpl.h LibSQL: Introduce Serializer as a mediator between Heap and client code 2021-08-21 22:03:30 +02:00