becasue buffer_type is MYSQL_TINY_TYPE if MYSQL set a BOOL field.
Existing code in Databaselayer MysqlPreparedStatementResultSet::GetResultBool:
Code: Select all
if ((*(pResultBinding->is_null) == false))
bValue = (*((int*)(pResultBinding->buffer)) != 0);