wez             Sat Jul  9 22:00:38 2005 EDT

  Modified files:              
    /php-src/ext/pdo_mysql      mysql_statement.c 
  Log:
  Get precise lengths from the server, as suggested by Andrey.
  
  
http://cvs.php.net/diff.php/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.36&r2=1.37&ty=u
Index: php-src/ext/pdo_mysql/mysql_statement.c
diff -u php-src/ext/pdo_mysql/mysql_statement.c:1.36 
php-src/ext/pdo_mysql/mysql_statement.c:1.37
--- php-src/ext/pdo_mysql/mysql_statement.c:1.36        Sat Jul  9 01:08:54 2005
+++ php-src/ext/pdo_mysql/mysql_statement.c     Sat Jul  9 22:00:35 2005
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: mysql_statement.c,v 1.36 2005/07/09 05:08:54 iliaa Exp $ */
+/* $Id: mysql_statement.c,v 1.37 2005/07/10 02:00:35 wez Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -78,6 +78,7 @@
        my_ulonglong row_count;
 #if HAVE_MYSQL_STMT_PREPARE
        int i;
+       my_bool on = 1;
 
        if (S->stmt) {
                /* (re)bind the parameters */
@@ -91,6 +92,8 @@
                        return 0;
                }
 
+               mysql_stmt_attr_set(S->stmt, STMT_ATTR_UPDATE_MAX_LENGTH, &on);
+
                if (!S->result) {
                        /* figure out the result set format, if any */
                        S->result = mysql_stmt_result_metadata(S->stmt);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to