matt-deboer opened a new issue, #1709:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1709

   1. The `PRINT string | @variable | str_expression` statement in MSSQL 
doesn't parse as a valid statement, and causes all other statement parsing to 
fail. I'm processing it now by finding and extracting all of them ahead of 
time, but it would be nice if they could be handled and ignored--treated 
essentially the same as comments.
   
      They currently fail with:
      `ParserError("Expected: an SQL statement, found: PRINT")`
   
   2. Also, the CONSTRAINT line in this statement fails:
      ```
      CREATE TABLE SAMPLE
      (
        [ID]    numeric(19)  NOT NULL ,
        CONSTRAINT [ID_PK] PRIMARY KEY  CLUSTERED ([ID] ASC)
      )
      ```
      With:
      `ParserError("Expected: ), found: ASC")` 
   


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