georg Sat Jan 31 02:51:04 2004 EDT Modified files: /php-src/ext/mysqli mysqli_api.c Log: Corrected binding: if column has type DECIMAL it will converted to string now. Thanks to Brian Aker for pointing this out. http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_api.c?r1=1.67&r2=1.68&ty=u Index: php-src/ext/mysqli/mysqli_api.c diff -u php-src/ext/mysqli/mysqli_api.c:1.67 php-src/ext/mysqli/mysqli_api.c:1.68 --- php-src/ext/mysqli/mysqli_api.c:1.67 Wed Jan 28 17:51:54 2004 +++ php-src/ext/mysqli/mysqli_api.c Sat Jan 31 02:51:03 2004 @@ -15,7 +15,7 @@ | Author: Georg Richter <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ - $Id: mysqli_api.c,v 1.67 2004/01/28 22:51:54 georg Exp $ + $Id: mysqli_api.c,v 1.68 2004/01/31 07:51:03 georg Exp $ */ #ifdef HAVE_CONFIG_H @@ -258,7 +258,6 @@ col_type = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].type : MYSQL_TYPE_STRING; switch (col_type) { - case MYSQL_TYPE_DECIMAL: case MYSQL_TYPE_DOUBLE: case MYSQL_TYPE_FLOAT: convert_to_double_ex(args[i]); @@ -300,6 +299,7 @@ case MYSQL_TYPE_STRING: case MYSQL_TYPE_BLOB: case MYSQL_TYPE_TIMESTAMP: + case MYSQL_TYPE_DECIMAL: stmt->result.buf[ofs].type = IS_STRING; stmt->result.buf[ofs].buflen = (stmt->stmt->fields) ? stmt->stmt->fields[ofs].length + 1: 256; stmt->result.buf[ofs].buffer = (char *)emalloc(stmt->result.buf[ofs].buflen);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php