From: Ilia Alshanetsky Date: Sun, 4 Jun 2006 14:57:06 +0000 (+0000) Subject: MFB: Fixed bug #37671 (MySQLi extension fails to recognize BIT column). X-Git-Tag: RELEASE_1_0_0RC1~2786 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b36fde4b9eb51cff21361d4a879d47c16244fd42;p=php MFB: Fixed bug #37671 (MySQLi extension fails to recognize BIT column). --- diff --git a/ext/mysqli/mysqli_api.c b/ext/mysqli/mysqli_api.c index 0ea0c9fd4b..7dc91366c3 100644 --- a/ext/mysqli/mysqli_api.c +++ b/ext/mysqli/mysqli_api.c @@ -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 */