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 broken" if trying to alter procedure used in a view #409

Open
mg-ica opened this issue Feb 20, 2025 · 2 comments
Open

"Dependencies broken" if trying to alter procedure used in a view #409

mg-ica opened this issue Feb 20, 2025 · 2 comments

Comments

@mg-ica
Copy link

mg-ica commented Feb 20, 2025

When trying to alter the body of a procedure which is used in a view i get an error message "Dependencies broken".

Using isql this works without any problem.

FB 2.5.9

@arvanus
Copy link
Collaborator

arvanus commented Feb 20, 2025

Can you provide a reproducible sample?

@mg-ica
Copy link
Author

mg-ica commented Feb 21, 2025

The following code causes this behavior every time. Without the intermediate COMMITs it's working

SET TERM ^ ;
CREATE PROCEDURE SP_TEST
RETURNS (X VARCHAR(8))
AS
BEGIN
  X = '1';
  SUSPEND;
END
^
SET TERM ; ^

COMMIT;

CREATE VIEW VIEW_TEST(Y)
AS
SELECT (SELECT X FROM SP_TEST) AS Y FROM RDB$DATABASE;

COMMIT;

SET TERM ^ ;
ALTER PROCEDURE SP_TEST
RETURNS (X VARCHAR(8))
AS
BEGIN
  X = '2';
  SUSPEND;
END
^
SET TERM ; ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants