yoabot-droid opened a new pull request, #2233:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2233

   ## Problem
   
   In T-SQL multi-statement scripts delimited by newlines, the parser was 
consuming statement-starting keywords (`DECLARE`, `EXEC`/`EXECUTE`, `INSERT`, 
`UPDATE`, `DELETE`, `DROP`, `CREATE`, `ALTER`, `TRUNCATE`, `PRINT`, `WHILE`, 
`RETURN`, `THROW`, `RAISERROR`, `MERGE`) as implicit aliases for the preceding 
`SELECT` item or table reference, then failing on the next token.
   
   ## Fix
   
   Extended `is_select_item_alias()` and `is_table_factor_alias()` in 
`MsSqlDialect` to return `false` for all of these keywords, matching the 
existing treatment of `IF` and `ELSE`.
   
   ## Test
   
   Adds `test_tsql_statement_keywords_not_implicit_aliases` covering column and 
table alias cases across the full affected keyword set.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to