Skip to content

Conversation

@jongmin-won
Copy link
Contributor

@jongmin-won jongmin-won commented Dec 26, 2025

http://jira.cubrid.org/browse/CBRD-25762

Purpose

11.4v 에서 반영된 pr 1건(#5731)을 백포트 합니다.

  • 일반 사용자가 Trigger를 unload 수행하는 경우 name과 target_class에서 [user_schema]가 제거되지만, condition 및 action_definition에 사용된 쿼리 내 [user_schema]는 제거되지 않는 문제를 수정 합니다.

AS-IS

CREATE TRIGGER [trigger]
  STATUS ACTIVE
  PRIORITY 0.000000
  AFTER INSERT ON [t1]
IF 100<(select count(*) from (select /*+ NO_MERGE */ [col1] as [col1], 1 as [col2] from [u1.t2]) [tbl] where [tbl].[col1] is not null )
  EXECUTE insert into [u1.t2] select * from [u1.t1];

TO-BE

CREATE TRIGGER [trigger]
  STATUS ACTIVE
  PRIORITY 0.000000
  AFTER INSERT ON [t1]
IF 100<(select count(*) from (select /*+ NO_MERGE */ [col1] as [col1], 1 as [col2] from [t2]) [tbl] where [tbl].[col1] is not null )
  EXECUTE insert into [t2] select * from [t1];

Implementation

N/A

Remarks

N/A

…_schema] from condition and action_definition if the owner is the user themselves.
@jongmin-won jongmin-won self-assigned this Dec 26, 2025
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