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


##########
src/dialect/mssql.rs:
##########
@@ -215,6 +218,78 @@ impl MsSqlDialect {
         }))
     }
 
+    /// Parse a SQL CREATE statement
+    fn parse_create(&self, parser: &mut Parser) -> Option<Result<Statement, 
ParserError>> {
+        let original_index = parser.index();
+
+        if !parser.parse_keyword(Keyword::CREATE) {
+            parser.set_index(original_index);

Review Comment:
   I think instead of manually tracking index we can rely on the 
`parser.maybe_parse()`? that will automatically handle the indexing



-- 
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