Skip to content

Model MySQL CREATE SCHEMA options - #2544

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/mysql-create-schema-options
Sep 5, 2026
Merged

Model MySQL CREATE SCHEMA options#2544
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:fix/mysql-create-schema-options

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Summary

  • parse MySQL CREATE SCHEMA character-set, collation, and encryption options
  • introduce a shared typed DatabaseOption model for both CREATE SCHEMA and CREATE DATABASE
  • expose option kind, value, DEFAULT, and equals-sign usage without requiring token reparsing
  • retain the existing flat CreateDatabase#getDatabaseOptions() representation for compatibility

Validation

  • ./gradlew test spotlessCheck checkstyleMain checkstyleTest
  • parser generation remains at the baseline 11 warnings
  • combined CHARACTER SET, COLLATE, and ENCRYPTION schema options were executed successfully against MySQL 8.4

PR checklist

  • One independently reviewable feature
  • Shared structured AST instead of duplicated raw-token handling
  • Existing CREATE DATABASE access remains compatible

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

Copy link
Copy Markdown
Contributor

Thanks!

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