iliaa           Mon Jan 14 18:41:31 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  
  Missing patch bit from the FETCH_GROUP fix
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo/pdo_stmt.c?r1=1.118.2.38.2.24.2.9&r2=1.118.2.38.2.24.2.10&diff_format=u
Index: php-src/ext/pdo/pdo_stmt.c
diff -u php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.9 
php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.10
--- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.24.2.9      Fri Jan 11 01:47:18 2008
+++ php-src/ext/pdo/pdo_stmt.c  Mon Jan 14 18:41:31 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.9 2008/01/11 01:47:18 iliaa Exp $ */
+/* $Id: pdo_stmt.c,v 1.118.2.38.2.24.2.10 2008/01/14 18:41:31 iliaa Exp $ */
 
 /* The PDO Statement Handle Class */
 
@@ -955,6 +955,8 @@
                                if (colno >= 0 && colno < stmt->column_count) {
                                        if (flags == PDO_FETCH_GROUP && 
stmt->fetch.column == -1) {
                                                fetch_value(stmt, return_value, 
1, NULL TSRMLS_CC);
+                                       } else if (flags == PDO_FETCH_GROUP && 
colno) {
+                                               fetch_value(stmt, return_value, 
0, NULL TSRMLS_CC);
                                        } else {
                                                fetch_value(stmt, return_value, 
colno, NULL TSRMLS_CC); 
                                        }

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

Reply via email to