Skip to content

Commit

Permalink
Improve error for an unexpected token after DROP (apache#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnivas authored Dec 28, 2024
1 parent 48f025f commit 77b5bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5466,7 +5466,7 @@ impl<'a> Parser<'a> {
return self.parse_drop_extension();
} else {
return self.expected(
"TABLE, VIEW, INDEX, ROLE, SCHEMA, DATABASE, FUNCTION, PROCEDURE, STAGE, TRIGGER, SECRET, SEQUENCE, TYPE, or EXTENSION after DROP",
"DATABASE, EXTENSION, FUNCTION, INDEX, POLICY, PROCEDURE, ROLE, SCHEMA, SECRET, SEQUENCE, STAGE, TABLE, TRIGGER, TYPE, or VIEW after DROP",
self.peek_token(),
);
};
Expand Down

0 comments on commit 77b5bd6

Please sign in to comment.