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
Problem with dependencies with views [CORE2923] #3306
Comments
Modified by: @dyemanovassignee: Adriano dos Santos Fernandes [ asfernandes ] |
Commented by: @asfernandes Also, DROP VIEW v_deps drops the shared domain. |
Commented by: @asfernandes This is 2.1: SQL> create table t (n integer); Above commands seem to work in 2.1, but below ones doesn't, and the cause is the same: SQL> create table t (n integer); It may be possible (but not trivial) to fix what you reported in 2.5, but same thing using domains in parameters (as this last example) requires some redesign on how view fields works. |
Commented by: @dyemanov I'm afraid we have to fix it somehow, at least the originally reported issue. We offer a new feature (procedures inside views) but a requirement that prohibits any alteration of such procedures makes this feature very problematic to use. |
Commented by: @asfernandes I've did basic change to make the test case work in 2.5. In HEAD, the solution applied works with domains too. |
Modified by: @asfernandesstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.5 RC3 [ 10381 ] Fix Version: 3.0 Alpha 1 [ 10331 ] |
Modified by: @pmakowskistatus: Resolved [ 5 ] => Closed [ 6 ] |
Modified by: @asfernandessummary: Problem with dependencies between a procedure and a view using that procedure => Problem with dependencies with views |
Submitted by: @dyemanov
Is related to QA435
Test case:
recreate procedure p_deps returns (i int) as begin suspend; end
commit;
recreate view v_deps as select i from p_deps
commit;
alter procedure p_deps returns (i int) as begin suspend; end
commit;
unsuccessful metadata update.
cannot delete.
DOMAIN RDB$73.
there are 1 dependencies.
System generated domain is shared between the procedure output parameter and the view column, but ALTER PROCEDURE tries to recreate that domain.
Commits: 47bcd0d f2dcf72 7b1c7db FirebirdSQL/fbt-repository@cb09ff9
The text was updated successfully, but these errors were encountered: