mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
return error instead of panic for invalid syntax on views
I have accidentally typed "create materialized views", and noticed that this panics, instead of returning an error. Fix it.
This commit is contained in:
parent
f149b40e75
commit
cb7c04ffad
1 changed files with 1 additions and 1 deletions
|
|
@ -749,7 +749,7 @@ impl<'a> Parser<'a> {
|
|||
|
||||
fn parse_create_materialized_view(&mut self) -> Result<Stmt> {
|
||||
eat_assert!(self, TK_MATERIALIZED);
|
||||
eat_assert!(self, TK_VIEW);
|
||||
eat_expect!(self, TK_VIEW);
|
||||
let if_not_exists = self.parse_if_not_exists()?;
|
||||
let view_name = self.parse_fullname(false)?;
|
||||
let columns = self.parse_eid_list(false)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue