1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00

Fix for missing errmsg in test 005

This commit is contained in:
Ard Biesheuvel
2003-08-12 10:02:25 +00:00
parent cba7a31245
commit d6477e1b6d
+4 -9
View File
@@ -2468,8 +2468,6 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
ibase_result *ib_result;
XSQLVAR *var;
RESET_ERRMSG;
switch (ZEND_NUM_ARGS()) {
case 1:
if (ZEND_NUM_ARGS() == 1 && zend_get_parameters_ex(1, &result_arg) == FAILURE) {
@@ -2490,14 +2488,11 @@ static void _php_ibase_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int fetch_type)
ZEND_FETCH_RESOURCE(ib_result, ibase_result *, result_arg, -1, "InterBase result", le_result);
if (ib_result->out_sqlda == NULL) {
_php_ibase_module_error("Trying to fetch results from a non-select query");
if (ib_result->out_sqlda == NULL || !ib_result->has_more_rows) {
RETURN_FALSE;
}
if (!ib_result->has_more_rows) {
RETURN_FALSE;
}
} /* might have been because of an error */
RESET_ERRMSG;
array_init(return_value);