skip to main content
Using the Driver : Using Connection Properties : Data Type Handling Properties
  

Try DataDirect Drivers Now

Data Type Handling Properties

The following table summarizes connection properties which can be used to handle data types.
Table 8. Data Type Handling Properties
Property
Characteristic
Controls how data conversions are handled for null values.
If set to 0, the driver does not perform the data type check if the value of the column is null. This allows null values to be returned even though a conversion between the requested type and the column type is undefined.
If set to 1, the driver checks the data type being requested against the data type of the table column that stores the data. If a conversion between the requested type and column type is not defined, the driver generates an "unsupported data conversion" exception regardless of whether the column value is NULL.
The default is 1.
Determines which algorithm the driver uses when converting a double or float value to a string value. By default, the driver uses its own internal conversion algorithm, which improves performance.
If set to true, the driver uses the JVM algorithm when converting a double or float value to a string value. If your application cannot accept rounding differences and you are willing to sacrifice performance, set this value to true to use the JVM conversion algorithm.
If set to false, the driver uses its own internal algorithm when converting a double or float value to a string value. This value improves performance, but slight rounding differences within the allowable error of the double and float data types can occur when compared to the same conversion using the JVM algorithm.
The default is false.
Specifies whether String columns are described as VARCHAR columns. This property affects ResultSetMetaData calls; it does not affect getTypeInfo() calls.
If set to varchar, String columns are described as VARCHAR.
If set to longvarchar, String columns are described as LONGVARCHAR.
The default is varchar.

See also

Connection Property Descriptions