The graphic SQL data types are:
Table 202. Converting Graphic SQL Data to C Data
fCType | Test | rgbValue | pcbValue | SQLSTATE |
---|---|---|---|---|
SQL_C_CHAR | Number of double byte characters * 2 <= cbValueMax | Data | Length of data(octects) | 00000 |
Number of double byte characters * 2 > cbValueMax | Truncated data, to the nearest even byte that is less than cbValueMax. | Length of data(octects) | 01004 | |
SQL_C_DBCHAR | Number of double byte characters * 2 < cbValueMax | Data | Length of data(octects) | 00000 |
Number of double byte characters * 2 >= cbValueMax | Truncated data, to the nearest even byte that is less than cbValueMax. | Length of data(octects) | 01004 | |
SQLSTATE 00000 is not returned by SQLError(), rather
it is indicated when the function returns SQL_SUCCESS.
|