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

A query could produce different results, depending on the presence of an index [CORE1056] #1475

Closed
firebird-automations opened this issue Dec 15, 2006 · 10 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @asfernandes

Is related to QA134

When the last character of a string is the first character of a compression pair, a query could produce different results depending on the presence of an index.

This bug was fixed in FB2 for intl collations, but it exist in UNICODE collation too.

Commits: ca0de4e

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Adriano, can you provide a test case for this issue please? I would like write a test for it.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

The test case for the first (fbintl) issue, fixed in V2.0 is:
-------------
create database 't.fdb';
create table t (c varchar(10) character set win1250 collate pxw_csy);
insert into t values ('ch');

select * from t where c starting with 'c';
commit;

create index t_c on t (c);
select * from t where c starting with 'c';
-------------

Test case for UNICODE issue I can't write.
V2 has such compressions pairs in UNICODE collation, but it don't support locale attribute which may make easy to reproduce.

I could not write these unicode chars to reproduce problem in V2.

@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

Link: This issue is related to QA134 [ QA134 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Fix verified for 2.0.0, test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11401 ] => Firebird [ 15420 ]

@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