FirebirdSQL / jaybird

JDBC driver for Firebird
https://firebirdsql.org/en/jdbc-driver/
GNU Lesser General Public License v2.1
94 stars 23 forks source link

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

Closed mrotteveel closed 8 months ago

mrotteveel commented 8 months ago

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 commented 8 months ago

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

mrotteveel commented 8 months ago

Backported to Jaybird 5.0.5