MFB: Fixed bug #37671 (MySQLi extension fails to recognize BIT column).

This commit is contained in:
Ilia Alshanetsky 2006-06-04 14:57:06 +00:00
parent 6a113f3b51
commit b36fde4b9e

View File

@ -294,6 +294,9 @@ PHP_FUNCTION(mysqli_stmt_bind_result)
case MYSQL_TYPE_LONG:
case MYSQL_TYPE_INT24:
case MYSQL_TYPE_YEAR:
#if MYSQL_VERSION_ID > 50002
case MYSQL_TYPE_BIT:
#endif
convert_to_long_ex(args[i]);
stmt->result.buf[ofs].type = IS_LONG;
/* don't set stmt->result.buf[ofs].buflen to 0, we used ecalloc */