Skip to content

fix(oracle): render ALTER SESSION assignments with = (#6035) - #6740

Open
Pika-Yalei wants to merge 1 commit into
alibaba:masterfrom
Pika-Yalei:fix/oracle-alter-session-6035
Open

Pika-Yalei wants to merge 1 commit into
alibaba:masterfrom
Pika-Yalei:fix/oracle-alter-session-6035

Conversation

@Pika-Yalei

Copy link
Copy Markdown

Summary

Fixes #6035.

OracleOutputVisitor currently renders every SQLAssignItem with :=, including items inside ALTER SESSION SET. Render those session-setting items with = directly in visit(OracleAlterSessionStatement), while leaving normal PL/SQL assignment rendering unchanged.

Regression coverage

  • NLS_DATE_FORMAT with the exact format string from the issue
  • CURRENT_SCHEMA and multiple assignment items
  • Uppercase and lowercase keyword output, plus parse/print/parse round trips
  • PL/SQL block assignment continuing to use :=
  • Explicit JUnit 5 @Test annotations, including the existing schema-statistics test

Validation

  • Passed: git diff --check, basic whitespace checks, and Java 8 syntax parsing of both changed files
  • Blocked locally: focused Maven tests before and after the fix, and the CI-equivalent full build (./mvnw -Penable-for-jdk17+,gen-code-cov clean package -B). The Maven wrapper cannot resolve repo.maven.apache.org, so none reached compilation or test execution
  • A cached-dependency direct compilation attempt was also blocked by the unavailable PostgreSQL JDBC dependency
  • No local RED/GREEN or full Checkstyle pass is claimed; this is a draft pending runtime validation/CI

@Pika-Yalei
Pika-Yalei marked this pull request as ready for review October 19, 2026 03:17
@Pika-Yalei Pika-Yalei changed the title Fix Oracle ALTER SESSION assignment output fix(oracle): render ALTER SESSION assignments with = (#6035) Oct 19, 2026
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.

oracle alter session 语句使用SQLUtils.parseStatements解析错误

1 participant