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

View with equally named source fields not faisible [CORE1078] #649

Closed
firebird-automations opened this issue Jan 5, 2007 · 15 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Stephan Bielmann (sbielmann)

Duplicates CORE831
Is related to QA75

Here a simple example to explain the problem I encounter:

create table t1(id integer, field1 integer);
create table t2(id integer, field1 integer);

create view view1 as select t1.field1 as t1f1, t2.field1 as t2f1 from t1,t2 where http://t1.id=t2.id;

Statement failed, SQLCODE = -607
unsuccessful metadata update
-STORE RDB$RELATION_FIELDS failed
-attempt to store duplicate value (visible to active transactions) in unique index "RDB$INDEX_15"

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 [ 10041 ]

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Commented by: Sean Leyne (seanleyne)

Is an error generated if you use SQL92 syntax?

create view view1 as select t1.field1 as t1f1, t2.field1 as t2f1 from t1 JOIN t2 on http://t2.id = http://t1.id;

@firebird-automations
Copy link
Collaborator Author

Commented by: Ann Harrison (awharrison)

You can use this syntax until 2.1 becomes available and Firebird
respects the alias names

created view v1 (t1_f1, t2_f2) as select t1.f1, t2.f1 from t1 join t2 on (t1.f1 = t2.f2);

@firebird-automations
Copy link
Collaborator Author

Commented by: Stephan Bielmann (sbielmann)

I get the same error with:

create view view1 as select t1.field1 as t1f1, t2.field1 as t2f1 from t1 JOIN t2 on http://t2.id = http://t1.id;

however the other one:

created view v1 (t1_f1, t2_f2) as select t1.f1, t2.f1 from t1 join t2 on (t1.f1 = t2.f2);

works fine. Thanks a lot.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue duplicates CORE831 [ CORE831 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Fix confirmed for 2.1 Alpha 1. Test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Reopened to update ticket information.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Closed [ 6 ] => Reopened [ 4 ]

resolution: Fixed [ 1 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Fix Version: 2.1 Alpha 1 [ 10150 ]

Fix Version: 2.1.0 [ 10041 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Reopened [ 4 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA75 [ QA75 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11460 ] => Firebird [ 14941 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

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