mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
MFB
This commit is contained in:
parent
dd8aadedf5
commit
2811f9293d
1 changed files with 14 additions and 1 deletions
|
@ -1384,8 +1384,21 @@ static void php_sybase_query (INTERNAL_FUNCTION_PARAMETERS, int buffered)
|
|||
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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue