LibSQL: Update list of expected statements

Add an entry for the DESCRIBE TABLE statement and add an Oxford comma.
This commit is contained in:
Daniel van Gerpen
2022-02-06 12:45:29 +01:00
committed by Linus Groh
parent 2e81990a3c
commit 8b38df72a3

View File

@@ -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>();
}
}