wez             Thu Nov 24 22:23:21 2005 EDT

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  Bug: when stringify fetch mode is on, and the driver returns a string instead
  of a stream for a LOB parameter, PDO would incorrectly return NULL for that
  column.
  
  
  
http://cvs.php.net/diff.php/php-src/ext/pdo/pdo_stmt.c?r1=1.118.2.19&r2=1.118.2.20&ty=u
Index: php-src/ext/pdo/pdo_stmt.c
diff -u php-src/ext/pdo/pdo_stmt.c:1.118.2.19 
php-src/ext/pdo/pdo_stmt.c:1.118.2.20
--- php-src/ext/pdo/pdo_stmt.c:1.118.2.19       Thu Nov 24 19:29:04 2005
+++ php-src/ext/pdo/pdo_stmt.c  Thu Nov 24 22:23:17 2005
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.118.2.19 2005/11/25 00:29:04 wez Exp $ */
+/* $Id: pdo_stmt.c,v 1.118.2.20 2005/11/25 03:23:17 wez Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -517,6 +517,11 @@
                                } else {
                                        ZVAL_NULL(dest);
                                }
+                       } else {
+                               ZVAL_STRINGL(dest, value, value_len, 
!caller_frees);
+                               if (caller_frees) {
+                                       caller_frees = 0;
+                               }
                        }
                        break;
                

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

Reply via email to