From b58fa703b44c092b069d3c9efcd450968c605de0 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Tue, 12 Aug 2003 17:33:54 +0000 Subject: Allow prepared execution of any non-query statement except CREATE DB (fixes bug #7014) --- ext/interbase/php_interbase.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'ext/interbase/php_interbase.h') diff --git a/ext/interbase/php_interbase.h b/ext/interbase/php_interbase.h index 0fe8e135b0..8439729816 100644 --- a/ext/interbase/php_interbase.h +++ b/ext/interbase/php_interbase.h @@ -112,7 +112,7 @@ ZEND_BEGIN_MODULE_GLOBALS(ibase) ZEND_END_MODULE_GLOBALS(ibase) typedef struct { - isc_db_handle link; + isc_db_handle handle; struct tr_list *tr_list; unsigned short dialect; } ibase_db_link; @@ -144,8 +144,8 @@ typedef struct { } ibase_blob_handle; typedef struct { - isc_db_handle link; /* db link for this result */ - isc_tr_handle trans; + ibase_db_link *link; + ibase_trans *trans; isc_stmt_handle stmt; int drop_stmt; XSQLDA *in_sqlda, *out_sqlda; @@ -153,10 +153,13 @@ typedef struct { int in_array_cnt, out_array_cnt; unsigned short dialect; int cursor_open; + char statement_type; + char *query; + int trans_res_id; } ibase_query; typedef struct { - isc_db_handle link; /* db link for this result */ + isc_db_handle link; isc_tr_handle trans; isc_stmt_handle stmt; int drop_stmt; -- cgit v1.2.1