mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 18:32:28 -05: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
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…
Add table
Reference in a new issue