Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE OR ALTER TRIGGER can change the table associated with an existing trigger [CORE5546] #5814

Closed
firebird-automations opened this issue May 18, 2017 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

Before Firebird 3.0, the table name was ignored when changed from the original trigger in a CREATE OR ALTER TRIGGER.

In Firebird 3.0, it started to change the trigger's table.

Test case:

recreate table t1 (n integer);
recreate table t2 (n integer);

create or alter trigger trig1 before insert on t1 as begin end;
show trigger trig1;
-- table: t1

create or alter trigger trig1 after insert on t2 as begin end;
show trigger trig1;
-- table: t2

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @mrotteveel

Sounds like expected behavior to me, why'd you want to revert this?

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

I was thinking it was an unintentionally and incomplete change, but it's not, and it's working.

It was done in CORE4846 by me :D

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants