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

Dependencies are not stored when using some type of constructions in subroutines [CORE5410] #5683

Closed
firebird-automations opened this issue Nov 30, 2016 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Gabor Boros (gaborboros)

In the below isql test case the NEW_PROCEDURE stored procedure (with PROC1 sub-procedure) depend on the NEW_TABLE table which can be dropped without any error
SELECT * FROM RDB$DEPENDENCIES; returns nothing.

SQL> CREATE DATABASE 'SUB_DEPEND.FDB'
CON> user 'SYSDBA' password 'masterkey';

isql -i SUB_DEPEND.sql -user SYSDBA 'SUB_DEPEND.FDB'

SUB_DEPEND.sql:

CREATE TABLE NEW_TABLE (NEW_FIELD INTEGER);

COMMIT;

SET TERM ^;

CREATE PROCEDURE NEW_PROCEDURE
AS

DECLARE PROCEDURE PROC1
AS
DECLARE VARIABLE VAR1 INTEGER;
BEGIN
SELECT NEW_FIELD FROM NEW_TABLE INTO VAR1;
END

BEGIN
EXECUTE PROCEDURE PROC1;
END;
^

SET TERM ;^

COMMIT;

DROP TABLE NEW_TABLE;

COMMIT;

Commits: d7e131b 48d43a8

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 4.0 Initial [ 10621 ]

summary: Subroutines not create dependencies => Dependencies are not stored when using some type of contructions in subroutines

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

Fix Version: 3.0.2 [ 10785 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

summary: Dependencies are not stored when using some type of contructions in subroutines => Dependencies are not stored when using some type of constructions in subroutines

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