Skip to content

feat: support Oracle TRUNCATE storage and log options - #2856

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/oracle-truncate-options-20261024
Oct 24, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/oracle-truncate-options-20261024

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Oracle TRUNCATE TABLE statements with REUSE STORAGE, DROP [ALL] STORAGE or PRESERVE/PURGE MATERIALIZED VIEW LOG currently fail. Add separate structured storage and log options and render them in Oracle clause order before CASCADE, retaining the existing relation-target and PostgreSQL identity APIs.

Tests cover option combinations in default and Oracle modes, qualified and quoted names, model changes, malformed clauses and statement boundaries. Existing PostgreSQL TRUNCATE and LOCK target/identity tests remain covered. Relation-target construction, lookahead and option mapping live in a nested helper so the generated parser remains instrumentable by JaCoCo within the JVM constant-pool limit.

Syntax reference: Oracle TRUNCATE TABLE.

Validation: full Maven clean verify; Gradle check with Spotless ratcheted to upstream/master for this fork checkout; combined-change tests (414 tests) and the 238-input, three-configuration compatibility corpus, with no previously parsing input regressions.

@manticore-projects
manticore-projects merged commit dedc3a8 into JSQLParser:master Oct 24, 2026
10 checks passed
@manticore-projects

Copy link
Copy Markdown
Contributor

Thank you!

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