LucaCappelletti94 opened a new pull request, #3020:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3020

   SQLite accepts a conflict clause after a table-level `PRIMARY KEY` or 
`UNIQUE` constraint (https://www.sqlite.org/lang_createtable.html, 
https://www.sqlite.org/lang_conflict.html), and currently only the column form 
added in #1442 parsed.
   
   `*Constraint` structs gain an `on_conflict: Option<Keyword>` field, the 
representation `ColumnOption::OnConflict` already uses. Column constraints keep 
parsing into `ColumnOption::OnConflict`. A new dialect method, 
`supports_constraint_conflict_clause`, enables the clause for SQLite and the 
generic dialect and replaces the `dialect_of!` check on the column option.


-- 
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]

  • [PR] SQLite: Support conflict cl... LucaCappelletti94 (via GitHub) via github

Reply via email to