cvs: php-src /ext/mysqli mysqli_api.c
| From: | Ilia Alshanetsky | Date: | Sun, 04 Jun 2006 14:57:06 +0000 |
| Subject: | cvs: php-src /ext/mysqli mysqli_api.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-38600@lists.php.net to get a copy of this message | ||
iliaa Sun Jun 4 14:57:06 2006 UTC
Modified files:
/php-src/ext/mysqli mysqli_api.c
Log:
MFB: Fixed bug #37671 (MySQLi extension fails to recognize BIT column).
http://cvs.php.net/viewcvs.cgi/php-src/ext/mysqli/mysqli_api.c?r1=1.127&r2=1.128&diff_format=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.127 php-src/ext/mysqli/mysqli_api.c:1.128
--- php-src/ext/mysqli/mysqli_api.c:1.127 Wed May 10 12:29:09 2006
+++ php-src/ext/mysqli/mysqli_api.c Sun Jun 4 14:57:06 2006
@@ -15,7 +15,7 @@
| Author: Georg Richter <georg@php.net> |
+----------------------------------------------------------------------+
- $Id: mysqli_api.c,v 1.127 2006/05/10 12:29:09 andrey Exp $
+ $Id: mysqli_api.c,v 1.128 2006/06/04 14:57:06 iliaa Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -294,6 +294,9 @@
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 */