iliaa           Mon Jan 14 18:41:41 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/pdo    pdo_stmt.c 
  Log:
  
  MFB: 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.30&r2=1.118.2.38.2.31&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.30 
php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.31
--- php-src/ext/pdo/pdo_stmt.c:1.118.2.38.2.30  Fri Jan 11 01:47:55 2008
+++ php-src/ext/pdo/pdo_stmt.c  Mon Jan 14 18:41:41 2008
@@ -18,7 +18,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: pdo_stmt.c,v 1.118.2.38.2.30 2008/01/11 01:47:55 iliaa Exp $ */
+/* $Id: pdo_stmt.c,v 1.118.2.38.2.31 2008/01/14 18:41:41 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