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

DOMAINs don't register their dependency on other objects [CORE282] #613

Closed
firebird-automations opened this issue May 22, 2005 · 12 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Claudio Valderrama C. (robocop)

Block progress on CORE770
Is related to QA218

SFID: 1206386#⁠
Submitted By: robocop

Even if a domain has checks that depend on other
objects, such dependency is not tracked. Contrived example:

SQL> create database 'depend.fdb';
SQL> create table t(a int);
SQL> create domain d int check(value > (select max(a)
from t));
SQL> drop table t;

No error message, the table is dropped. The domain
becomes unusable:

SQL> create table u(a d);
Statement failed, SQLCODE = -104
invalid request BLR at offset 16
-table id 128 is not defined

Generally, the posibility of having subselects in many
parts introduces dependencies that never have been
acknowledged.

@firebird-automations
Copy link
Collaborator Author

Modified by: Alice F. Bird (firebirds)

description: SFID: 1206386#⁠
Submitted By: robocop

Even if a domain has checks that depend on other
objects, such dependency is not tracked. Contrived example:

SQL> create database 'depend.fdb';
SQL> create table t(a int);
SQL> create domain d int check(value > (select max(a)
from t));
SQL> drop table t;

No error message, the table is dropped. The domain
becomes unusable:

SQL> create table u(a d);
Statement failed, SQLCODE = -104
invalid request BLR at offset 16
-table id 128 is not defined

Generally, the posibility of having subselects in many
parts introduces dependencies that never have been
acknowledged.

=>

SFID: 1206386#⁠
Submitted By: robocop

Even if a domain has checks that depend on other
objects, such dependency is not tracked. Contrived example:

SQL> create database 'depend.fdb';
SQL> create table t(a int);
SQL> create domain d int check(value > (select max(a)
from t));
SQL> drop table t;

No error message, the table is dropped. The domain
becomes unusable:

SQL> create table u(a d);
Statement failed, SQLCODE = -104
invalid request BLR at offset 16
-table id 128 is not defined

Generally, the posibility of having subselects in many
parts introduces dependencies that never have been
acknowledged.

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Valderrama C. (robocop)

The problem has been fixed by Adriano's changes to enhance domain-related operations. This is the result of the same script:

F:\fb2dev\fbbuild\firebird2\temp\debug\firebird\bin>isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database 'depend.fdb';
SQL> create table t(a int);
SQL> create domain d int check(value > (select max(a) from t));
SQL> commit;
SQL> drop table t;
Statement failed, SQLCODE = -607
unsuccessful metadata update
-cannot delete
-COLUMN A
-there are 1 dependencies
SQL> create table u(a d);
SQL> ^Z

Since the report is from May-2005 only today I remembered to recheck it.

@firebird-automations
Copy link
Collaborator Author

Modified by: Claudio Valderrama C. (robocop)

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 RC1 [ 10201 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: Claudio Valderrama C. (robocop)

Link: This issue block progress on CORE770 [ CORE770 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 10306 ] => Firebird [ 14545 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue block progress on QA218 [ QA218 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pmakowski

Q/A test ok

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA218 [ QA218 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue block progress on QA218 [ QA218 ] =>

@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