The date SQL data type is:
Table 205. Converting Date SQL Data to C Data
| fCType | Test | rgbValue | pcbValue | SQLSTATE | ||
|---|---|---|---|---|---|---|
| SQL_C_CHAR | cbValueMax >= 11 | Data | 10 | 00000 | ||
| cbValueMax < 11 | Untouched | 10 | 22003 | |||
| SQL_C_DATE | None a | Data | 6 b | 00000 | ||
| SQL_C_TIMESTAMP | None a | Data c | 16 b | 00000 | ||
SQLSTATE 00000 is not returned by SQLError(), rather it is indicated when the function returns SQL_SUCCESS. | ||||||
When the date SQL data type is converted to the character C data type, the resulting string is in the "yyyy-mm-dd" format.