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

Broken optimization for the stored dbkeys [CORE4038] #4368

Closed
firebird-issue-importer opened this issue Jan 16, 2013 · 10 comments
Closed

Broken optimization for the stored dbkeys [CORE4038] #4368

firebird-issue-importer opened this issue Jan 16, 2013 · 10 comments

Comments

@firebird-issue-importer

Submitted by: John Kilin (johnkilin)

Is related to QA524

Test case:

create table t (dbkey char(8) character set octets);
create index it on t (dbkey);

select * from t as t1
left join t as t2 on t2.dbkey = t1.rdb$db_key

-- expected plan:
PLAN JOIN (T1 NATURAL, T2 INDEX (IT))

-- actual plan:
PLAN JOIN (T1 NATURAL, T2 NATURAL)

This is a regression introduced with CORE2550 when a separate internal datatype was created for dbkeys.

Commits: 2cab423 e0068e7 FirebirdSQL/fbt-repository@07cee52

====== Test Details ======

See also: CORE4492, CORE4530

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jan 16, 2013

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jan 16, 2013

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jan 16, 2013

Modified by: @dyemanov

reporter: Dmitry Yemanov [ dimitr ] => John Kilin [ johnkilin ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jan 16, 2013

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jan 16, 2013

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.3 [ 10461 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jan 16, 2013

Modified by: @dyemanov

Version: 3.0 Initial [ 10301 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Mar 29, 2014

Modified by: @pcisar

Link: This issue is related to QA524 [ QA524 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Apr 10, 2014

Modified by: @pmakowski

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

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jul 12, 2015

Modified by: @pavel-zotov

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

QA Status: Done successfully

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jul 12, 2015

Modified by: @pavel-zotov

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

Test Details: See also: CORE4492, CORE4530

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