MapTimestampDescribe CLI/ODBC and IIBM data server driver configuration keyword

Controls the SQL data type returned when TIMESTAMP columns and parameter markers are described.

db2cli.ini keyword syntax:
MapTimestampDescribe = 0 | 1 | 2
IBM data server driver configuration file (db2dsdriver.cfg) syntax:
<parameter name="MapTimestampDescribe" value="0 | 1 | 2"/>
Attention: The IBM data server driver configuration file (db2dsdriver.cfg) syntax is available in Db2 11.5.4 and later.
Default setting:
The default SQL data type for TIMESTAMP data is returned: SQL_TIMESTAMP for ODBC 2.0 or SQL_TYPE_TIMESTAMP for ODBC 3.0.
Usage notes:
 
To control the SQL data type that is returned when TIMESTAMP columns and parameter markers are described, set MapTimestampDescribe as follows:
  • 0 - to return the default SQL data type: SQL_TIMESTAMP for ODBC 2.0 or SQL_TYPE_TIMESTAMP for ODBC 3.0
  • 1 - to return the SQL_CHAR SQL data type
  • 2 - to return the SQL_WCHAR SQL data type
Only the following CLI functions are affected by setting MapTimeStampDescribe:
  • SQLColumns()
  • SQLDescribeCol()
  • SQLDescribeParam()
  • SQLGetDescField()
  • SQLGetDescRec()
  • SQLProcedureColumns()
  • SQLSpecialColumns()