Skip to content

fix(oracle): keep stored unit declarations in split#135

Merged
rebelice merged 1 commit into
mainfrom
codex/oracle-split-stored-unit
May 12, 2026
Merged

fix(oracle): keep stored unit declarations in split#135
rebelice merged 1 commit into
mainfrom
codex/oracle-split-stored-unit

Conversation

@rebelice
Copy link
Copy Markdown
Collaborator

Fix Oracle lexical splitting for top-level CREATE FUNCTION/PROCEDURE bodies with declaration sections and no SQL*Plus slash separator.\n\nThe previous state machine allowed top-level stored units to end at the first semicolon before bodyStarted=true. That was intended for declaration-like forms, but it also split valid functions at declaration statements such as variable declarations before BEGIN.\n\nThis keeps those stored units open until END; while preserving call-spec bodies such as Java procedure specs and trigger CALL bodies.\n\nTests: go test ./oracle/parser

@rebelice rebelice force-pushed the codex/oracle-split-stored-unit branch from de2827c to 33d472e Compare May 12, 2026 08:06
@rebelice rebelice merged commit 0f831a3 into main May 12, 2026
2 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.

1 participant