thekid          Sat Nov  8 12:06:08 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/sybase_ct      php_sybase_ct.c 
  Log:
  - MFB: Changed while loop in php_sybase_fetch_result_row() to also read rows 
with
    retcode == CS_ROW_FAIL.
  # Reported by Detlef Neumerkel and Frank Irnich of Sybase
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sybase_ct/php_sybase_ct.c?r1=1.103.2.5.2.14&r2=1.103.2.5.2.15&diff_format=u
Index: php-src/ext/sybase_ct/php_sybase_ct.c
diff -u php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.14 
php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.15
--- php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.14        Mon Dec 31 
07:20:13 2007
+++ php-src/ext/sybase_ct/php_sybase_ct.c       Sat Nov  8 12:06:08 2008
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_sybase_ct.c,v 1.103.2.5.2.14 2007/12/31 07:20:13 sebastian Exp $ */
+/* $Id: php_sybase_ct.c,v 1.103.2.5.2.15 2008/11/08 12:06:08 thekid Exp $ */
 
 
 #ifdef HAVE_CONFIG_H
@@ -1143,7 +1143,7 @@
        }
        
        if (numrows!=-1) numrows+= result->num_rows;
-       while ((retcode=ct_fetch(result->sybase_ptr->cmd, CS_UNUSED, CS_UNUSED, 
CS_UNUSED, NULL))==CS_SUCCEED) {
+       while ((retcode=ct_fetch(result->sybase_ptr->cmd, CS_UNUSED, CS_UNUSED, 
CS_UNUSED, NULL))==CS_SUCCEED || retcode == CS_ROW_FAIL) {
                result->num_rows++;
                i= result->store ? result->num_rows- 1 : 0;
                if (i >= result->blocks_initialized*SYBASE_ROWS_BLOCK) {



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

Reply via email to