yoavcloud opened a new pull request, #2128:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2128
When parsing a SQL that doesn't use semicolon delimiters, for example:
```sql
SELECT col FROM tbl
IF x=1
SELECT 1
ELSE
SELECT 2
```
The parser needs to identify the `IF` keyword as a new statement instead of
an alias for `tbl` and the `ELSE` as part of the conditional statement instead
of an alias to `1`. Moreover, MSSQL doesn't support `IF/ELSE` as explicit
(after `AS`) or implicit table or column aliases.
Removed the assumption that every keyword after `AS` is an alias, and
extended MSSQL to exclude `IF/ELSE` as alias.
--
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]