Skip to content

fix: normalize PostgreSQL catalog.schema for SQLE audit - #682

Merged
LordofAvernus merged 1 commit into
mainfrom
dms/fix-1011
Dec 1, 2026
Merged

LordofAvernus merged 1 commit into
mainfrom
dms/fix-1011

Conversation

@actiontech-bot

Copy link
Copy Markdown
Member

Related issue

https://github.com/actiontech/dms-ee/issues/1011

Summary

  • Extend normalizeSQLEAuditSchemaName to PostgreSQL so ODC catalog.schema (e.g. postgres.public) is reduced to the connect catalog before SQLE direct audit.
  • Prevents workbench SQL audit from failing with「审核服务当前繁忙或不可用」when SQLE cannot connect to a dotted database name.

Test plan

  • Unit: Test_normalizeSQLEAuditSchemaName (PG / SQL Server / MySQL cases)
  • Live SQLE /v2/sql_audit on postgres14_local: schema_name=postgres.public fails before normalize; postgres succeeds
  • UI: ODC PG console execute with SQL audit enabled after CE→EE sync / local EE binary with same patch

Notes

CE-only change (no _ee files). No EE PR; enters main-ee via CE→EE sync.

Made with Cursor

ODC PG schema layer passes catalog.schema (e.g. postgres.public) as
schema context; SQLE direct audit treats schema_name as the connect
database. Extend normalizeSQLEAuditSchemaName to PostgreSQL like SQL
Server so audit no longer fails as "service unavailable".

Fixes actiontech/dms-ee#1011

@LordofAvernus LordofAvernus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: CE-only PG catalog.schema normalize for SQLE audit.

@LordofAvernus
LordofAvernus merged commit e398d89 into main Dec 1, 2026
1 check passed
@LordofAvernus
LordofAvernus deleted the dms/fix-1011 branch December 1, 2026 09:25
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