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

An error occurred while trying to change the service (non-user) domain if there are interrelated views [CORE6135] #6384

Open
firebird-automations opened this issue Sep 3, 2019 · 1 comment

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: ABog (abog)

create table SOME$TABLE (SOME$FIELD integer);
create view SOME$VIEW1(SOME$FIELD) as select T.SOME$FIELD from SOME$TABLE T;
create view SOME$VIEW2(SOME$FIELD) as select T.SOME$FIELD from SOME$VIEW1 T;

create domain D$SOME$DOMAIN as integer;
alter table SOME$TABLE alter column SOME$FIELD type D$SOME$DOMAIN;

This operation is not defined for system tables.
unsuccessful metadata update.
cannot delete.
DOMAIN RDB$XXXXX.
there are 1 dependencies.

The problem is the presence of a second view. If you remove it or remove a variable field from it, there will be no error.
Moreover, if the domain of the field (for example, initially when creating the table) is set to custom, then changing it to another is quiet.

@firebird-automations
Copy link
Collaborator Author

Commented by: Attila Molnár (e_pluribus_unum)

Looks like CORE4844.

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