This is an automated email from the ASF dual-hosted git repository.

iffyio pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-sqlparser-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new 77b5bd6f Improve error for an unexpected token after DROP (#1623)
77b5bd6f is described below

commit 77b5bd6fa8b85b22cb712d9995d2512b5b74038c
Author: Ramnivas Laddad <[email protected]>
AuthorDate: Sat Dec 28 05:29:28 2024 -0800

    Improve error for an unexpected token after DROP (#1623)
---
 src/parser/mod.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parser/mod.rs b/src/parser/mod.rs
index 5d1b1c37..ab8379ad 100644
--- a/src/parser/mod.rs
+++ b/src/parser/mod.rs
@@ -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(),
             );
         };


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to