When DBCS processing is enabled, the CA IDMS GRAPHIC and VARGRAPHIC data types are mapped to driver-specific ODBC SQL data types, as allowed by the ODBC 3.5 specification. These types are defined as CAID_GRAPHIC and CAID_VARGRAPHIC in the CAIDOOPT.H header file which is installed in the CA IDMS Server directory. These data types are returned by SQLColumns, SQLDescribeCol, and SQLColAttributes, and they should be used with SQLBindParameter to define input parameters for GRAPHIC and VARGRAPHIC columns.
Since most applications are not specifically designed to handle DBCS data as defined by CA IDMS, these types are treated in the same manner as SQL_CHAR and SQL_VARCHAR. The default C type for both is SQL_C_CHAR, and the precision is specified in bytes.
Note: The length on CA IDMS is specified in DBCS characters, which is half the precision specified using the ODBC driver.
When DBCS is not enabled, GRAPHIC and VARGRAPHIC are both mapped to SQL_BINARY, with a default C type of SQL_C_BINARY and precision equal to the length in bytes.
|
Copyright © 2009 CA.
All rights reserved.
|
|