-
Notifications
You must be signed in to change notification settings - Fork 675
Add referential actions to TableConstraint foreign key #306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Pull Request Test Coverage Report for Build 723771861
💛 - Coveralls |
|
Hi @joshwd36 -- sorry for the delay in review. I am going to help out now with this repo and we are working to clear the backlog. Is this PR still something you would like to work on to help contribute? |
No worries at all. I do currently have a project that relies on my fork of this so it would be good to get it merged. Other than rebasing is there any other work that needs to be done on it? |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great -- thank you very much @joshwd36
I think the code looks correct 👍 . Other than rebasing, the only thing I suggest for this PR is possibly add tests for the following cases:
- Alternate clause order
ON UPDATE ... ON DELETE(I only see a test forON DELETE .. ON UPDATE..) - Error: duplicated ON DELETE clause e.g.
... ON DELETE CASCADE ON DELETE CASCADE
Thoughts @Dandandan / @andygrove ?
Sounds good. I'll see if I get a chance to do this in the next few days. |
…qlparser-rs into referential_constriant_action # Conflicts: # tests/sqlparser_common.rs
Pull Request Test Coverage Report for Build 1166487596Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. Thanks @joshwd36
This adds
ON UPDATEandON DELETEactions tosqlparser::ast::TableConstraint::ForeignKey, as described in table constraint and references specification.