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

Compound index search fix #3947

Merged
merged 5 commits into from Dec 15, 2023

Conversation

kiss034
Copy link
Contributor

@kiss034 kiss034 commented Dec 15, 2023

Hi,

There is an error related to my previous change (#3915). A ClassCastException happens in the IndexCondition.cloneWithIndexColumns() method, if

  1. the query contains a compound in condition, but the columns are in a wrong order according to the indexes on the table
  2. the query contains ? placeholders and the values are passed as prepared statement parameters.

This pull request introduces new tests and fixes the issue.

@grandinj
Copy link
Contributor

Nice! thanks!

@grandinj grandinj merged commit 5b62710 into h2database:master Dec 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants