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
RDB$VIEW_RELATIONS is not cleaned when altering a view [CORE2202] #2630
Comments
Modified by: @asfernandesassignee: Adriano dos Santos Fernandes [ asfernandes ] |
Commented by: Sean Leyne (seanleyne) This is as designed, if you include the RDB$Format column in your select, you will see that each entry has a different value, to represent the different versions of the VIEW/Table which may be in use by connections. |
Commented by: @asfernandes > This is as designed, if you include the RDB$Format column in your select, you will see that each entry has a different value, to represent the different versions of the VIEW/Table which may be in use by connections. |
Commented by: Alex Bekhtin (afgm) > This is as designed, if you include the RDB$Format column in your select, you will see that each entry has a different value, to represent the different versions of the VIEW/Table which may be in use by connections. |
Commented by: Claudio Valderrama C. (robocop) This is a bug. RDB$DEPENDENT_NAME VW_TABLE RDB$DEPENDENT_NAME VW_TABLE As you see, the only dependencies are due to the last definition. Previous definitions can hold the old format, but the new view doesn't have to be tied to objects it doesn't access. After all, if you try to drop the view, you're dropping the current version on disk. Imagine the same sequence with procedures: SQL> create procedure p1 as begin end^ RDB$DEPENDENT_NAME P At this time, I should be able to drop p1, p21 and p2 and I indeed can do that. |
Modified by: @asfernandessummary: do not clean up relations for VIEW => RDB$VIEW_RELATIONS is not cleaned when altering a view |
Commented by: @pcisar QA test added. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @pavel-zotovstatus: Closed [ 6 ] => Closed [ 6 ] QA Status: Done successfully Test Details: Changed code to make it independent of system tables content. |
Submitted by: Alex Bekhtin (afgm)
Is related to QA374
CREATE TABLE TABLE_1 (
ID INTEGER
);
CREATE TABLE TABLE_2 (
ID INTEGER
);
CREATE TABLE TABLE_3 (
ID INTEGER
);
-----------------
CREATE OR ALTER VIEW VW_TABLE(
ID)
AS
select
id
from table_1;
CREATE OR ALTER VIEW VW_TABLE(
ID)
AS
select
id
from table_2;
CREATE OR ALTER VIEW VW_TABLE(
ID)
AS
select
id
from table_3;
-----------------
select * from RDB$VIEW_RELATIONS
============================
RDB$VIEW_NAME RDB$RELATION_NAME RDB$VIEW_CONTEXT RDB$CONTEXT_NAME
VW_TABLE TABLE_1 1 TABLE_1
VW_TABLE TABLE_2 1 TABLE_2
VW_TABLE TABLE_3 1 TABLE_3
Commits: d113151
====== Test Details ======
Changed code to make it independent of system tables content.
The text was updated successfully, but these errors were encountered: