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
Comments
Modified by: @dyemanovstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: 2.1 [ 10041 ] assignee: Dmitry Yemanov [ dimitr ] |
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; |
Commented by: Ann Harrison (awharrison) You can use this syntax until 2.1 becomes available and Firebird created view v1 (t1_f1, t2_f2) as select t1.f1, t2.f1 from t1 join t2 on (t1.f1 = t2.f2); |
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. |
Commented by: @pcisar Fix confirmed for 2.1 Alpha 1. Test added. |
Modified by: @pcisarstatus: Resolved [ 5 ] => Closed [ 6 ] |
Commented by: @pcisar Reopened to update ticket information. |
Modified by: @pcisarWorkflow: jira [ 11460 ] => Firebird [ 14941 ] |
Modified by: @pavel-zotovQA Status: No test |
Modified by: @pavel-zotovstatus: Closed [ 6 ] => Closed [ 6 ] QA Status: No test => Done successfully |
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"
The text was updated successfully, but these errors were encountered: