TIBCO Data Virtualization® Adapter Online Help > TDV MySQL Adapter > MySQL Function Support > MySQL Conversion Function Support
 
MySQL Conversion Function Support
TDV supports the conversion functions listed in the table below for MySQL. Conversion functions map data types differently depending on the MySQL version.
MySQL Conversion Function
Notes
CAST
Supported only for MySQL 4.0.2 or higher.
If a JConnector version prior to 5.1.28 is used, fractional seconds returned from CAST STRING to TIMESTAMP are erroneously offset three decimal places to the right.
Casting as a whole number converts NULL values to zero, so whole numbers cannot be pushed safely.
When casting a NULL value for a TIMESTAMP column as VARCHAR, MySQL might return either NULL or ‘0000-00-00 00:00:00’ (depending on the default-value setting for the column in the data source). TDV server (no push) always returns NULL.
Depending on MySQL server-side settings (TRADITIONAL vs. STRICT), can return data and warnings or no data and error when casting incompatible data types.
FORMAT_DATE
Supported only for MySQL 4.1.1 or higher.
PARSE_DATE
Supported only for MySQL 4.1.1 or higher.
PARSE_TIME
Supported only for MySQL 4.1.1 or higher.
PARSE_TIMESTAMP
Supported only for MySQL 4.1.1 or higher.
TO_CHAR
Supported only for MySQL 4.0.2 or higher.
TO_DATE
Supported only for MySQL 4.0.2 or higher. Variant mappings for different versions.
TO_NUMBER
Supported only for MySQL 4.0.2 or higher.
TO_TIMESTAMP
Supported only for MySQL 4.0.2 or higher.