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

Invalid results in SELECT, when index is used to eveluate "greater" operator in WHERE clause [CORE1053] #1472

Closed
firebird-automations opened this issue Dec 14, 2006 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @AlexPeshkoff

Relate to CORE1215

SELECT * FROM Table WHERE IntField > Constant
returns less records then
SELECT * FROM Table WHERE IntField >= Constant+1

Commits: 42f0211 8876bbd f86fef0

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Can't reproduce. Query below worked fine

select count(*) from rdb$relations where rdb$relation_id > 5
union all
select count(*) from rdb$relations where rdb$relation_id >= 5 + 1
union all
select count(*) from rdb$relations where rdb$relation_id >= 6

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

It happens only when key value changes exactly between index blocks. Fix for HEAD is ready and will be committed in a few minutes.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Error happened when key value changed exactly at the beginning of index block.
Great thanks to Vlad and Arno.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Fixed [ 1 ]

Fix Version: 2.0.1 [ 10090 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Link: This issue relate to CORE1215 [ CORE1215 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11390 ] => Firebird [ 15415 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

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