The attached program accepts 3 parameters:
1. The ODBC DSN
2. The database user name
3. The database password
It then connects to the database, creates a simple table that has a bool and attempts to bind and populate.
You will see that the only binding failure is SQL_C_CHAR.
The exact error message is:
return code = -1 reported from file: bugg.cpp, line: 232
Native Error Code: 1406
buffer: [ma-2.0.11][5.7.12-log]Data too long for column 'x' at row 1