iliaa Tue Jul 19 22:36:35 2005 EDT Modified files: /php-src/ext/pdo_mysql mysql_statement.c Log: Only set attribute if result set contains some columns. http://cvs.php.net/diff.php/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.45&r2=1.46&ty=u Index: php-src/ext/pdo_mysql/mysql_statement.c diff -u php-src/ext/pdo_mysql/mysql_statement.c:1.45 php-src/ext/pdo_mysql/mysql_statement.c:1.46 --- php-src/ext/pdo_mysql/mysql_statement.c:1.45 Tue Jul 19 22:19:20 2005 +++ php-src/ext/pdo_mysql/mysql_statement.c Tue Jul 19 22:36:34 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: mysql_statement.c,v 1.45 2005/07/20 02:19:20 iliaa Exp $ */ +/* $Id: mysql_statement.c,v 1.46 2005/07/20 02:36:34 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -94,7 +94,7 @@ /* if buffered, pre-fetch all the data */ if (H->buffered) { /* if we have bound the buffers don't set the attribute again */ - if (!S->result) { + if (!S->result && stmt->column_count > 0) { my_bool on = 1; mysql_stmt_attr_set(S->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &on); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php