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

Wrong dependent object type (RELATION) in RDB$DEPEDENCIES for VIEW's [CORE2293] #2718

Closed
firebird-automations opened this issue Jan 26, 2009 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Is related to QA383

create or alter view v
as
select 1 id from rdb$database

commit

create or alter procedure p_v as
declare x int;
begin
select id from v into :x;
select 1 from rdb$database into :x;
end

commit

select dep.*, typ.rdb$type_name
from rdb$dependencies dep join rdb$types typ
on dep.rdb$depended_on_type = typ.rdb$type
and typ.rdb$field_name = 'RDB$OBJECT_TYPE'
where dep.rdb$dependent_name = 'P_V'

You see type_name = 'RELATION' and rdb$depended_on_type = 0 for all three rows, while for two of them there must be 'VIEW' and 1 correspondingly

Commits: 5a1aac3

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Fix Version: 2.5 Beta 1 [ 10251 ]

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Volker Rehn (vr2_s18)

It is also wrong in ODS 11.0 databases, likely that all versions ODS 11.0 and up are affected

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

I tested it on HEAD (v2.5) only but i think this bug is inherited from IB6 :)
When we'll plan 2.0.6\2.1.3 fix will be backported, i think

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA383 [ QA383 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Version: 2.1.4 [ 10361 ]

Version: 2.0.6 [ 10303 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

QA test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

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