Supported C++ data types and mappings (see ETI_Map::build() in bind_basics.cpp for details)

C++ type ODBC C Data Type ODBC SQL Data Type
short SQL_C_SSHORT SQL_INTEGER
unsigned short SQL_C_USHORT SQL_INTEGER
int SQL_C_SLONG SQL_INTEGER
unsigned int SQL_C_ULONG SQL_INTEGER
long SQL_C_SLONG SQL_INTEGER
unsigned long SQL_C_ULONG SQL_INTEGER
double SQL_C_DOUBLE SQL_DOUBLE
float SQL_C_FLOAT SQL_FLOAT
char SQL_C_CHAR SQL_CHAR
bool SQL_C_USHORT SQL_INTEGER
ODBC TIMESTAMP_STRUCT SQL_C_TIMESTAMP SQL_TIMESTAMP
jtime_c SQL_C_TIMESTAMP SQL_TIMESTAMP
char [xxx] SQL_C_CHAR SQL_VARCHAR
string <--> basic_string<char> \ SQL_C_CHAR SQL_VARCHAR
wstring<--> basic_string<wchar_t> SQL_C_WCHAR SQL_WVARCHAR
Binary Data or blob <--> basic_string<unsigned char> SQL_C_BINARY SQL_VARBINARY