Skip to content

Add drop behavior to DROP PRIMARY/FOREIGN KEY#2002

Merged
iffyio merged 2 commits intoapache:mainfrom
yoavcloud:sf_alter_table_drop_constraint
Aug 19, 2025
Merged

Add drop behavior to DROP PRIMARY/FOREIGN KEY#2002
iffyio merged 2 commits intoapache:mainfrom
yoavcloud:sf_alter_table_drop_constraint

Conversation

@yoavcloud
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/ast/ddl.rs Outdated
"DROP PRIMARY KEY{}",
match drop_behavior {
None => "",
Some(DropBehavior::Restrict) => " RESTRICT",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DropBehavior has Display, so you could use that.

@yoavcloud yoavcloud requested a review from mvzink August 16, 2025 05:37
Copy link
Copy Markdown
Contributor

@mvzink mvzink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Copy Markdown
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @yoavcloud!
cc @alamb

@iffyio iffyio changed the title Add drop behavior to DROP PRIMARY/FOREIGN KEY Add drop behavior to DROP PRIMARY/FOREIGN KEY Aug 19, 2025
@iffyio iffyio merged commit 12c0878 into apache:main Aug 19, 2025
10 checks passed
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Aug 19, 2025

Woohoo -- we are past issue/PR 2000 -- a major milestone indeed

ayman-sigma pushed a commit to sigmacomputing/sqlparser-rs that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants