iffyio commented on code in PR #1864:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1864#discussion_r2113591715


##########
src/parser/mod.rs:
##########
@@ -6249,6 +6249,11 @@ impl<'a> Parser<'a> {
                 loc
             );
         }
+        // Mysql requires table specification on index drop
+        let table = match self.parse_keyword(Keyword::ON) {
+            true => Some(self.parse_object_name(false)?),
+            false => None,
+        };

Review Comment:
   ```suggestion
           let table = if self.parse_keyword(Keyword::ON) {
               Some(self.parse_object_name(false)?)
           } else {
               None
           };
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to