From feb8bb7dfc88488b2d0d7b92ef954054c8118a91 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 12 Aug 2003 02:16:40 +0000 Subject: [PATCH] Fix for failed tests except 005 --- ext/interbase/interbase.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 2665de1fd0..176e12a72e 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -1906,12 +1906,12 @@ PHP_FUNCTION(ibase_rollback_ret) static void _php_ibase_do_fetch(ibase_result *ib_result TSRMLS_DC) { if (ib_result->has_more_rows) { - if (isc_dsql_fetch(IB_STATUS, &ib_result->stmt, 1, ib_result->out_sqlda) == 100L) { + if (isc_dsql_fetch(IB_STATUS, &ib_result->stmt, 1, ib_result->out_sqlda)) { + ib_result->has_more_rows = 0; - } - - if (IB_STATUS[0] && IB_STATUS[1]) { /* error in fetch */ - _php_ibase_error(TSRMLS_C); + if (IB_STATUS[0] && IB_STATUS[1]) { /* error in fetch */ + _php_ibase_error(TSRMLS_C); + } } } } @@ -3528,7 +3528,7 @@ PHP_FUNCTION(ibase_blob_import) unsigned short b; ibase_blob_handle ib_blob; ibase_db_link *ib_link; - ibase_trans *trans; + ibase_trans *trans = NULL; char bl_data[IBASE_BLOB_SEG]; /* FIXME? blob_seg_size parameter? */ php_stream *stream; -- 2.40.0