LucaCappelletti94 opened a new pull request, #3097: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3097
`CREATE VIEW v AS SELECT * FROM t WHERE a > 0 WITH CHECK OPTION` fails in `PostgreSqlDialect` with `Expected: end of statement, found: WITH`, and so do the `CASCADED` and `LOCAL` forms. This PR now follows the [PostgreSQL documentation](https://www.postgresql.org/docs/current/sql-createview.html) and the [MySQL documentation](https://dev.mysql.com/doc/refman/8.4/en/create-view.html), and I checked each form against PostgreSQL 18.7 and MySQL 8.4, introducing a new `check_option` optional attribute in `CreateView` storing whether and which type of view check option was parsed. -- 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]
