C Data Types in ODBC
ODBC also defines a default mapping from each SQL data type to a C data type.
For example, a 2-byte integer in the data source is mapped to a 2-byte integer
in the application. To use the default mapping, an application specifies the
SQL_C_DEFAULT type identifier. However, use of this identifier is discouraged for
interoperability reasons.
All integer C data types defined in ODBC 1.x were signed. Unsigned C data types and their corresponding type identifiers
were added in ODBC 2.0. Because of this, applications and drivers need to be
particularly careful when dealing with 1.x versions.