romanb opened a new pull request, #2295: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2295
This is a follow-up to https://github.com/apache/datafusion-sqlparser-rs/pull/2234. Currently the following valid SQL fails to parse (SQL server): ```sql EXEC ('SELECT * FROM ' + @TableName + ' WHERE 1=1') ``` Semantically it is the same as `EXEC (@sql)` (or `EXECUTE IMMEDIATE '...'` in BigQuery or Snowflake). In that sense, with this PR both `EXEC (@sql)` and `EXEC ('SELECT * FROM ' + @TableName + ' WHERE 1=1')` are parsed into `Statement::Execute` with `name: None` and the first and only "parameter" being the string expression, just like it is already the case for the analogous BigQuery or Snowflake statements. -- 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]
