mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibSQL: Update list of expected statements
Add an entry for the DESCRIBE TABLE statement and add an Oxford comma.
This commit is contained in:
parent
2e81990a3c
commit
8b38df72a3
Notes:
sideshowbarker
2024-07-17 19:06:19 +09:00
Author: https://github.com/dantje Commit: https://github.com/SerenityOS/serenity/commit/8b38df72a3 Pull-request: https://github.com/SerenityOS/serenity/pull/12311 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ NonnullRefPtr<Statement> Parser::parse_statement()
|
|||
case TokenType::Select:
|
||||
return parse_select_statement({});
|
||||
default:
|
||||
expected("CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, or SELECT");
|
||||
expected("CREATE, ALTER, DROP, DESCRIBE, INSERT, UPDATE, DELETE, or SELECT");
|
||||
return create_ast_node<ErrorStatement>();
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ NonnullRefPtr<Statement> Parser::parse_statement_with_expression_list(RefPtr<Com
|
|||
case TokenType::Select:
|
||||
return parse_select_statement(move(common_table_expression_list));
|
||||
default:
|
||||
expected("INSERT, UPDATE, DELETE or SELECT");
|
||||
expected("INSERT, UPDATE, DELETE, or SELECT");
|
||||
return create_ast_node<ErrorStatement>();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue