diff options
-rw-r--r-- | ext/interbase/ibase_query.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c index a29a64c328..e8436c03a4 100644 --- a/ext/interbase/ibase_query.c +++ b/ext/interbase/ibase_query.c @@ -941,7 +941,7 @@ static int _php_ibase_exec(INTERNAL_FUNCTION_PARAMETERS, ibase_result **ib_resul return SUCCESS; default: - RETVAL_TRUE; + RETVAL_FALSE; } /* allocate sqlda and output buffers */ @@ -1027,7 +1027,11 @@ static int _php_ibase_exec(INTERNAL_FUNCTION_PARAMETERS, ibase_result **ib_resul if (affected_rows > 0) { ib_query->trans->affected_rows = affected_rows; RETVAL_LONG(affected_rows); + break; } + + default: + RETVAL_TRUE; } rv = SUCCESS; |