Skip to content

Model MySQL DROP object lists - #2545

Merged
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/mysql-drop-objects
Sep 5, 2026
Merged

Model MySQL DROP object lists#2545
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/mysql-drop-objects

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Summary

  • parse DROP DATABASE, DROP PROCEDURE, and DROP TRIGGER as typed Drop statements
  • support comma-separated table and view targets
  • expose a typed object kind and the complete target list through getObjectType() and getNames()
  • retain getType() and getName() as compatible accessors for existing callers
  • update deparsing, validation, table discovery, and statement visitors to process every target

Validation

  • ./gradlew test spotlessCheck checkstyleMain checkstyleTest
  • parser generation remains at the baseline 11 warnings
  • database, procedure, trigger, multi-table, and multi-view forms were created and dropped successfully against MySQL 8.4

PR checklist

  • One cohesive DROP AST change
  • Structured object kind and target list; no SQL reparsing
  • Existing single-target API remains compatible

@manticore-projects
manticore-projects merged commit 5c59b7b into JSQLParser:master Sep 5, 2026
8 checks passed
@manticore-projects

Copy link
Copy Markdown
Contributor

Thank you very much!

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