stepancheg opened a new pull request, #1648: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1648
There's `<drop behavior>` definition [in the grammar](https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#drop-behavior), so corresponding enum seems appropriate: ``` pub enum DropBehavior { Restrict, Cascade, } ``` vs ``` pub enum ReferentialAction { Restrict, Cascade, SetNull, NoAction, SetDefault, } ``` Context: `ALTER TABLE DROP COLUMN` sqlparser does not support `RESTRICT`. I wanted to add it, but adding `ReferentialAction` there too might be misleading, so here I introduce an enum. -- 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]
