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

some DDL statements can't be executed in one transaction [CORE5763] #6026

Closed
firebird-automations opened this issue Feb 28, 2018 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: fbbt (fbbt)

Duplicates CORE3458

CREATE TABLE T (F INTEGER);

CREATE TRIGGER T_BI FOR T ACTIVE BEFORE INSERT POSITION 0
AS
BEGIN
NEW.F = 0;
END

COMMIT;

scenario 1:
DROP TRIGGER T_BI;
ALTER TABLE T ALTER F TO FF;
-- error:
-- unsuccessful metadata update
-- Column F from table T is referenced in T_BI

scenario 2:
DROP TRIGGER T_BI;
ALTER TABLE T DROP F;
COMMIT;
-- ok

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Are you using ISQL to execute these statements?

@firebird-automations
Copy link
Collaborator Author

Commented by: fbbt (fbbt)

I use IBExpert.
I think it can be reproduced in ISQL with "SET AUTOddl off".

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue duplicates CORE3458 [ CORE3458 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Duplicate [ 3 ]

@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

1 participant