]> granicus.if.org Git - php/commitdiff
Fixed bug #37671 (MySQLi extension fails to recognize BIT column).
authorIlia Alshanetsky <iliaa@php.net>
Sun, 4 Jun 2006 14:56:34 +0000 (14:56 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 4 Jun 2006 14:56:34 +0000 (14:56 +0000)
NEWS
ext/mysqli/mysqli_api.c

diff --git a/NEWS b/NEWS
index 49d6fd5bab24bf43361e1337034aa46303f7caf4..bd526de4d5ea39af56cb719968880bc08b39c188 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -49,6 +49,7 @@ PHP                                                                        NEWS
 - Added RFC2397 (data: stream) support. (Marcus)
 - Fixed memory leaks in openssl streams context options (Pierre)
 - Fixed handling of extremely long paths inside tempnam() function. (Ilia)
+- Fixed bug #37671 (MySQLi extension fails to recognize BIT column). (Ilia)
 - Fixed bug #37635 (parameter of pcntl signal handler is trashed). (Mike)
 - Fixed bug #37632 (Protected method access problem). (Marcus)
 - Fixed bug #37630 (MySQL extensions should link against thread safe client
index b409e56b51593f4595e6f9210345d5fa29b405d6..51d219a32360de8469ba7a737c13b134790a0478 100644 (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 */