databaselayer - mysqlGetResultBool error

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
weworld
Earned a small fee
Earned a small fee
Posts: 20
Joined: Tue Mar 25, 2008 3:39 pm

databaselayer - mysqlGetResultBool error

Post by weworld »

It seems that GetResultBool need to cast the binding buffuer to a char*,
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);
Post Reply