#23682 [Opn->Csd]: sybase_query and multiple result sets: not returning first row set
| From: | sniper@php.net | Date: | Thu, 28 Aug 2003 16:19:39 +0000 |
| Subject: | #23682 [Opn->Csd]: sybase_query and multiple result sets: not returning first row set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-46872@lists.php.net to get a copy of this message | ||
ID: 23682
Updated by: sniper@php.net
Reported By: uk at dataway dot ch
-Status: Open
+Status: Closed
Bug Type: Sybase-ct (ctlib) related
Operating System: Linux 2.4.21
PHP Version: 4.3.3
New Comment:
Patch committed to CVS.
Previous Comments:
------------------------------------------------------------------------
[2003-08-28 10:09:32] uk at dataway dot ch
The issue is still present in version 4.3.3. This is unsurprising,
since the code in question was not changed.
Why don't you want to apply the patch I supplied?
------------------------------------------------------------------------
[2003-08-26 00:58:29] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2003-08-19 19:20:27] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
And possibly update your patch for it.
Is bug #25161 possibly caused by this..?
------------------------------------------------------------------------
[2003-05-27 03:38:15] uk at dataway dot ch
This issue is still present in 4.3.2RC4
------------------------------------------------------------------------
[2003-05-18 11:55:56] uk at dataway dot ch
Here (with a slight correction, CS_STATUS_RESULT
doesn't return a result set)
--- ext/sybase_ct/php_sybase_ct.c.orig Sun May 18 17:49:26 2003
+++ ext/sybase_ct/php_sybase_ct.c Sun May 18 18:37:11 2003
@@ -1386,8 +1386,22 @@
case CS_CURSOR_RESULT:
case CS_PARAM_RESULT:
case CS_ROW_RESULT:
- /* Unexpected results, cancel them. */
+ if (status != Q_RESULT) {
+ result = php_sybase_fetch_result_set(sybase_ptr, buffered,
store);
+ if (result == NULL) {
+ ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_ALL);
+ sybase_ptr->dead = 1;
+ RETURN_FALSE;
+ }
+ status = Q_RESULT;
+ }
+ else {
+ /* Unexpected results, cancel them. */
+ ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_CURRENT);
+ }
+ break;
case CS_STATUS_RESULT:
+ /* Unexpected results, cancel them. */
ct_cancel(NULL, sybase_ptr->cmd, CS_CANCEL_CURRENT);
break;
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/23682
--
Edit this bug report at http://bugs.php.net/?id=23682&edit=1