cvs: php-src(PHP_5_3) /ext/sybase_ct php_sybase_ct.c
| From: | Timm Friebe | Date: | Sat, 08 Nov 2008 12:05:46 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/sybase_ct php_sybase_ct.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-54045@lists.php.net to get a copy of this message | ||
thekid Sat Nov 8 12:05:46 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/sybase_ct php_sybase_ct.c
Log:
- 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.13.2.8&r2=1.103.2.5.2.13.2.9&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.13.2.8
php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.13.2.9
--- php-src/ext/sybase_ct/php_sybase_ct.c:1.103.2.5.2.13.2.8 Sun Nov 2 21:19:38 2008
+++ php-src/ext/sybase_ct/php_sybase_ct.c Sat Nov 8 12:05:46 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_sybase_ct.c,v 1.103.2.5.2.13.2.8 2008/11/02 21:19:38 felipe Exp $ */
+/* $Id: php_sybase_ct.c,v 1.103.2.5.2.13.2.9 2008/11/08 12:05:46 thekid Exp $ */
#ifdef HAVE_CONFIG_H
@@ -1200,7 +1200,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) {