mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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
Notes:
sideshowbarker
2024-07-18 17:02:47 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/ab79599a5ef Pull-request: https://github.com/SerenityOS/serenity/pull/7664 Issue: https://github.com/SerenityOS/serenity/issues/7627
@@ -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