Skip to content

fix(parser): support IF EXISTS in ALTER TABLE MODIFY COLUMN - #2494

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
dengliming:fix/alter-table-modify-if-exists
Aug 22, 2026
Merged

fix(parser): support IF EXISTS in ALTER TABLE MODIFY COLUMN#2494
manticore-projects merged 1 commit into
JSQLParser:masterfrom
dengliming:fix/alter-table-modify-if-exists

Conversation

@dengliming

Copy link
Copy Markdown
Contributor

Fixes #2112

  • accept both IF EXISTS and IF NOT EXISTS with optional COLUMN
  • preserve existence clauses when deparsing
  • add round-trip and AST regression tests

- accept both IF EXISTS and IF NOT EXISTS with optional COLUMN
- preserve existence clauses when deparsing
- add round-trip and AST regression tests
@manticore-projects

Copy link
Copy Markdown
Contributor

Thank your for fixing this!

@manticore-projects
manticore-projects merged commit 44c0fe5 into JSQLParser:master Aug 22, 2026
7 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.

[BUG] ALTER TABLE ... MODIFY/DROP should support the IF EXIST option

2 participants