C to SQL: Bit

The bit HCL OneDB™ ODBC Driver C data type is SQL_C_BIT.

The following table shows the HCL OneDB ODBC Driver SQL data types to which bit C data can be converted.
fSqlType Test SQLSTATE
SQL_BIGINT

SQL_DECIMAL

SQL_DOUBLE

SQL_INTEGER

SQL_REAL

SQL_SMALLINT

None N/A
SQL_BIT None N/A
SQL_CHAR

SQL_LONGVARCHAR

SQL_VARCHAR

None N/A

HCL OneDB ODBC Driver ignores the value that the pcbValue argument of SQLBindParameter points to and the value of the cbValue argument of SQLPutData when it converts data from the Boolean C data type. HCL OneDB ODBC Driver uses the size of rgbValue for the size of the Boolean C data type.