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

Add connection property to disable retrieval of extended field info for ResultSetMetaData #795

Closed
mrotteveel opened this issue Mar 31, 2024 · 2 comments

Comments

@mrotteveel
Copy link
Member

mrotteveel commented Mar 31, 2024

With the change of #793, Jaybird will retrieve extended field info for more types of columns. As this can reduce performance, we should add a connection property to disable the retrieval of this extend field info for ResultSetMetaData. When disabled, ResultSetMetaData.getPrecision(int) will always return an estimated precision, and ResultSetMetaData.isAutoIncrement(int) will always return false. It will then not perform additional queries to retrieve information.

The default behaviour is enabled (retrieve extended field info).

@mrotteveel
Copy link
Member Author

Reopened: I added the property, but not the actual disabling.

@mrotteveel
Copy link
Member Author

Backported to Jaybird 5.0.5

mrotteveel added a commit that referenced this issue Apr 1, 2024
Includes:
#731 FBResultSetMetaData.getExtendedFieldInfo will query same set of fields when there are more than 70 fields
#732 Optimize FBResultSetMetaData.getExtendedFieldInfo
#793 Report true for ResultSetMetaData.isAutoIncrement for identity columns
#795 Add connection property to disable retrieval of extended field info for ResultSetMetaData
#795 Implement disabling of retrieval of extended field info for ResultSetMetaData
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