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

Populate FILTER_CONDITION of DatabaseMetaData.getIndexInfo for Firebird 5.0 partial indexes #797

Closed
mrotteveel opened this issue Apr 1, 2024 · 1 comment

Comments

@mrotteveel
Copy link
Member

mrotteveel commented Apr 1, 2024

Firebird 5.0 introduced support for partial indexes. Support for this needs to be added to DatabaseMetaData.getIndexInfo by populating the FILTER_CONDITION column. Its value should be the <search_condition> of the WHERE <search_condition> clause.

Note that Firebird includes the where part in the RDB$CONDITION_SOURCE column.

Consider backporting to Jaybird 5.

@mrotteveel
Copy link
Member Author

Stripping out the WHERE from the condition source has complications, as it will also store any comments before it, so for now I'll leave it in, with a remark in the javadoc that this may change in the future.

mrotteveel added a commit that referenced this issue Apr 3, 2024
mrotteveel added a commit that referenced this issue Apr 3, 2024
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

1 participant