romanb opened a new pull request, #1791: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1791
This PR is a follow-up to https://github.com/apache/datafusion-sqlparser-rs/pull/1741. In particular, it addresses the parsing of IF/ELSE statements for MSSQL. These are syntactically quite different from the already supported IF ... THEN ... ELSEIF ... END IF statements. The following are the main changes in this PR: * `IfStatement` is now an enum with two variants. * Statement parsing is overridden for the MSSQL dialect in order to parse `IF` statements differently for MSSQL. * AST nodes for IF/CASE statements are slightly refactored to produce proper spans that include start/end tokens, if present. * Tests are updated and extended. -- 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]
