The numeric C data types are:
Table 210. Converting Numeric C Data to SQL Data
fSQLType | Test | SQLSTATE | ||
---|---|---|---|---|
SQL_DECIMAL SQL_NUMERIC SQL_SMALLINT SQL_INTEGER SQL_REAL SQL_FLOAT SQL_DOUBLE | Data converted without truncation | 00000 | ||
Data converted with truncation, but without loss of significant digits | 22001 | |||
Conversion of data would result in loss of significant digits | 22003 | |||
SQL_CHAR SQL_VARCHAR | Data converted without truncation. | 00000 | ||
Conversion of data would result in loss of significant digits. | 22003 | |||
|