CatalogOptions
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Determines which type of metadata information is included in result sets when an application calls DatabaseMetaData methods.
Valid Values
2 | 4
Behavior
If set to 2, result sets do not contain synonyms.
If set to 4, a hint is provided to the driver to emulate getColumns()
calls using the ResultSetMetaData object instead of querying database catalogs for column
information. Result sets contain synonyms. Using emulation can improve performance because
the SQL statement that is formulated by the emulation is less complex than the SQL statement
that is formulated using getColumns(). The argument to getColumns() must evaluate to a
single table. If it does not, because of a wildcard or null value, for example, the driver
reverts to the default behavior for getColumns() calls.
Default
2
Data Type
int