diff options
author | Ard Biesheuvel <abies@php.net> | 2003-08-20 19:47:00 +0000 |
---|---|---|
committer | Ard Biesheuvel <abies@php.net> | 2003-08-20 19:47:00 +0000 |
commit | 27582c48628f97366d71513e71090367ec9b87d4 (patch) | |
tree | 3257dd7e60843c37e74d18daa23d1c7681351ac9 /ext/interbase/php_interbase.h | |
parent | f0bf9dd62d0b251f7901ee482c845a015797d634 (diff) | |
download | php-git-27582c48628f97366d71513e71090367ec9b87d4.tar.gz |
Reuse result data structure and resource id for consecutive executions
of a prepared query
# As previous resources are invalidated anyway because their statement
# handle is reused, we don't have to allocate a new result for every
# execution of a prepared query
Diffstat (limited to 'ext/interbase/php_interbase.h')
-rw-r--r-- | ext/interbase/php_interbase.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ext/interbase/php_interbase.h b/ext/interbase/php_interbase.h index b9713fcdc7..6cc80a307c 100644 --- a/ext/interbase/php_interbase.h +++ b/ext/interbase/php_interbase.h @@ -144,13 +144,24 @@ typedef struct { typedef struct { ibase_db_link *link; ibase_trans *trans; + struct _ibase_query *query; + isc_stmt_handle stmt; + XSQLDA *out_sqlda; + ibase_array *out_array; + unsigned char has_more_rows; + char statement_type; +} ibase_result; + +typedef struct _ibase_query { + ibase_db_link *link; + ibase_trans *trans; + ibase_result *result; + int result_res_id; isc_stmt_handle stmt; - int drop_stmt; XSQLDA *in_sqlda, *out_sqlda; ibase_array *in_array, *out_array; int in_array_cnt, out_array_cnt; unsigned short dialect; - int cursor_open; char statement_type; char *query; int trans_res_id; @@ -158,18 +169,7 @@ typedef struct { typedef struct { ibase_db_link *link; - ibase_trans *trans; - isc_stmt_handle stmt; - int drop_stmt; - XSQLDA *out_sqlda; - ibase_array *out_array; - unsigned char has_more_rows; - char statement_type; -} ibase_result; - -typedef struct { int link_res_id; - ibase_db_link *link; ISC_LONG event_id; unsigned short event_count; char **events; |