Skip to content

Add Cascade field to DDL for DROP statements - #482

Merged
zachmu merged 1 commit into
mainfrom
zachmu/drop-table-cascade
Sep 1, 2026
Merged

Add Cascade field to DDL for DROP statements#482
zachmu merged 1 commit into
mainfrom
zachmu/drop-table-cascade

Conversation

@zachmu

@zachmu zachmu commented Aug 31, 2026

Copy link
Copy Markdown
Member

Adds a Cascade field to the DDL AST node for DROP statements, which the MySQL grammar never sets (MySQL parses but ignores CASCADE) but integrators with real CASCADE semantics can set when constructing statements.

Companion PRs:

MySQL parses but ignores CASCADE on DROP TABLE, so the grammar never
sets this field; integrators with CASCADE semantics (e.g. Postgres
dialects) set it when constructing the statement.

@Hydrocharged Hydrocharged left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

@zachmu
zachmu merged commit 4550d35 into main Sep 1, 2026
4 checks passed
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.

2 participants