Lines Matching refs:trans
49 ibase_trans *trans; member
60 ibase_trans *trans; member
205 isc_db_handle link, isc_tr_handle trans, unsigned short *array_cnt TSRMLS_DC) in _php_ibase_alloc_array() argument
229 if (isc_array_lookup_bounds(IB_STATUS, &link, &trans, var->relname, in _php_ibase_alloc_array()
316 ibase_trans *trans, char *query, unsigned short dialect, int trans_res_id TSRMLS_DC) in _php_ibase_alloc_query() argument
328 ib_query->trans = trans; in _php_ibase_alloc_query()
349 if (isc_dsql_prepare(IB_STATUS, &ib_query->trans->handle, &ib_query->stmt, in _php_ibase_alloc_query()
401 link->handle, trans->handle, &ib_query->in_array_cnt TSRMLS_CC)) { in _php_ibase_alloc_query()
409 link->handle, trans->handle, &ib_query->out_array_cnt TSRMLS_CC)) { in _php_ibase_alloc_query()
743 &ib_query->trans->handle, &ib_blob.bl_handle, &ib_blob.bl_qd)) { in _php_ibase_bind()
786 if (isc_array_put_slice(IB_STATUS, &ib_query->link->handle, &ib_query->trans->handle, in _php_ibase_bind()
882 ibase_trans *trans; in _php_ibase_exec() local
895 trans = (ibase_trans *) emalloc(sizeof(ibase_trans)); in _php_ibase_exec()
896 trans->handle = tr; in _php_ibase_exec()
897 trans->link_cnt = 1; in _php_ibase_exec()
898 trans->affected_rows = 0; in _php_ibase_exec()
899 trans->db_link[0] = ib_query->link; in _php_ibase_exec()
903 ib_query->link->tr_list->trans = NULL; in _php_ibase_exec()
910 (*l)->trans = trans; in _php_ibase_exec()
913 ZEND_REGISTER_RESOURCE(return_value, trans, le_trans); in _php_ibase_exec()
921 &ib_query->trans->handle, 0, ib_query->query, ib_query->dialect, NULL)) { in _php_ibase_exec()
926 if (ib_query->trans->handle == NULL && ib_query->trans_res_id != 0) { in _php_ibase_exec()
947 res->trans = ib_query->trans; in _php_ibase_exec()
977 isc_result = isc_dsql_execute2(IB_STATUS, &ib_query->trans->handle, in _php_ibase_exec()
980 isc_result = isc_dsql_execute(IB_STATUS, &ib_query->trans->handle, in _php_ibase_exec()
988 ib_query->trans->affected_rows = 0; in _php_ibase_exec()
1019 ib_query->trans->affected_rows = affected_rows; in _php_ibase_exec()
1066 ibase_trans *trans = NULL; in PHP_FUNCTION() local
1082 ZEND_FETCH_RESOURCE(trans, ibase_trans*, &ztrans, -1, LE_TRANS, le_trans); in PHP_FUNCTION()
1091 _php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAM_PASSTHRU, &zlink, &ib_link, &trans); in PHP_FUNCTION()
1093 if (trans != NULL) { in PHP_FUNCTION()
1104 isc_tr_handle trans = NULL; in PHP_FUNCTION() local
1114 } else if (isc_dsql_execute_immediate(IB_STATUS, &db, &trans, (short)query_len, in PHP_FUNCTION()
1153 if (ib_link == NULL || FAILURE == _php_ibase_def_trans(ib_link, &trans TSRMLS_CC) in PHP_FUNCTION()
1154 || FAILURE == _php_ibase_alloc_query(&ib_query, ib_link, trans, query, ib_link->dialect, in PHP_FUNCTION()
1203 ibase_trans *trans = NULL; in PHP_FUNCTION() local
1215 if (ib_link->tr_list == NULL || ib_link->tr_list->trans == NULL) { in PHP_FUNCTION()
1218 trans = ib_link->tr_list->trans; in PHP_FUNCTION()
1221 _php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAM_PASSTHRU, &arg, &ib_link, &trans); in PHP_FUNCTION()
1222 if (trans == NULL) { in PHP_FUNCTION()
1225 if (ib_link->tr_list == NULL || ib_link->tr_list->trans == NULL) { in PHP_FUNCTION()
1228 trans = ib_link->tr_list->trans; in PHP_FUNCTION()
1231 RETURN_LONG(trans->affected_rows); in PHP_FUNCTION()
1556 if (isc_open_blob(IB_STATUS, &ib_result->link->handle, &ib_result->trans->handle, in _php_ibase_fetch_hash()
1614 &ib_result->trans->handle, &ar_qd, &ib_array->ar_desc, in _php_ibase_fetch_hash()
1735 ibase_trans *trans = NULL; in PHP_FUNCTION() local
1751 _php_ibase_get_link_trans(INTERNAL_FUNCTION_PARAM_PASSTHRU, &link_arg, &ib_link, &trans); in PHP_FUNCTION()
1753 if (trans != NULL) { in PHP_FUNCTION()
1761 ZEND_FETCH_RESOURCE(trans, ibase_trans *, &trans_arg, -1, LE_TRANS, le_trans); in PHP_FUNCTION()
1765 if (FAILURE == _php_ibase_def_trans(ib_link, &trans TSRMLS_CC)) { in PHP_FUNCTION()
1771 …if (FAILURE == _php_ibase_alloc_query(ib_query, ib_link, trans, query, ib_link->dialect, trans_res… in PHP_FUNCTION()
1837 if (ib_query->trans->handle == NULL) { in PHP_FUNCTION()