mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibSQL: Return an error for empty common table expression lists
SQL::CommonTableExpressionList is required to be non-empty. Return an error if zero common table expressions were parsed. Fixes #7627
This commit is contained in:
committed by
Ali Mohammad Pur
parent
5b86a8bad1
commit
ab79599a5e
@@ -682,6 +682,8 @@ TEST_CASE(select)
|
||||
|
||||
TEST_CASE(common_table_expression)
|
||||
{
|
||||
EXPECT(parse("WITH").is_error());
|
||||
EXPECT(parse("WITH;").is_error());
|
||||
EXPECT(parse("WITH DELETE FROM table;").is_error());
|
||||
EXPECT(parse("WITH table DELETE FROM table;").is_error());
|
||||
EXPECT(parse("WITH table AS DELETE FROM table;").is_error());
|
||||
|
||||
Reference in New Issue
Block a user