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

ALTER VIEW doesn't clear dependencies on old views [CORE2427] #2843

Closed
firebird-automations opened this issue Apr 14, 2009 · 10 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Cosmin Apreutesei (cosmin_ap2)

Is related to QA399

test: case: create view V3 that selects from V1. ALTER VIEW it so it selects from NEWV. After that, V1 still cannot be dropped because V3 depends on it.

Commits: e88a67e

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Cosmin, please put problem description + runnable test case.

I can't reproduce:

create database 't.fdb';
create view v1 (n) as select 1 from rdb$database;
create view v3 (n) as select * from v1;
create view newv (n) as select 1 from rdb$database;
alter view v3 (n) as select * from newv;
drop view v1;

No error in HEAD.

@firebird-automations
Copy link
Collaborator Author

Commented by: Cosmin Apreutesei (cosmin_ap2)

(wrong window sorry)

@firebird-automations
Copy link
Collaborator Author

Commented by: Cosmin Apreutesei (cosmin_ap2)

It seems you need to involve functions (built-ins or udfs) in your expressions.

Try this:

create view v1 (n) as select 'ABC' from rdb$database;
create view v3 (n) as select substring(lower(n) from 1) from v1;
create view newv (n) as select 'XYZ' from rdb$database;
alter view v3 (n) as select substring(lower(n) from 1) from newv;
drop view v1;

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC1 [ 10300 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA399 [ QA399 ]

@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

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test => Done successfully

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

No branches or pull requests

2 participants