wez             Thu Jul  7 08:45:41 2005 EDT

  Modified files:              
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  Fix bug in bindColumn() for drivers that implement native prepared statements
  and that use the PDO rewriter to handle non-native parameter syntax.
  
  
  
http://cvs.php.net/diff.php/php-src/ext/pdo/pdo_stmt.c?r1=1.102&r2=1.103&ty=u
Index: php-src/ext/pdo/pdo_stmt.c
diff -u php-src/ext/pdo/pdo_stmt.c:1.102 php-src/ext/pdo/pdo_stmt.c:1.103
--- php-src/ext/pdo/pdo_stmt.c:1.102    Thu Jul  7 07:19:56 2005
+++ php-src/ext/pdo/pdo_stmt.c  Thu Jul  7 08:45:40 2005
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.102 2005/07/07 11:19:56 dmitry Exp $ */
+/* $Id: pdo_stmt.c,v 1.103 2005/07/07 12:45:40 wez Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -292,7 +292,7 @@
                zend_hash_index_update(hash, param->paramno, param, 
sizeof(*param), (void**)&pparam);
        }
 
-       if (!rewrite_name_to_position(stmt, pparam TSRMLS_CC)) {
+       if (is_param && !rewrite_name_to_position(stmt, pparam TSRMLS_CC)) {
                return 0;
        }
        

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

Reply via email to