diff options
author | Timm Friebe <thekid@php.net> | 2008-11-08 12:05:46 +0000 |
---|---|---|
committer | Timm Friebe <thekid@php.net> | 2008-11-08 12:05:46 +0000 |
commit | 927804e2888d15d525270e6b6e071c255be385aa (patch) | |
tree | b685fa7af95975febba90a7452a78c9d0441900a /ext/sybase_ct | |
parent | 87ad2dd0676604b32802970d3372505f3e76065a (diff) | |
download | php-git-927804e2888d15d525270e6b6e071c255be385aa.tar.gz |
- 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
Diffstat (limited to 'ext/sybase_ct')
-rw-r--r-- | ext/sybase_ct/php_sybase_ct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sybase_ct/php_sybase_ct.c b/ext/sybase_ct/php_sybase_ct.c index 2bda194395..c52252d894 100644 --- a/ext/sybase_ct/php_sybase_ct.c +++ b/ext/sybase_ct/php_sybase_ct.c @@ -1200,7 +1200,7 @@ static int php_sybase_fetch_result_row (sybase_result *result, int numrows) } 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) { |