Lines Matching refs:trans
553 zval **link_id, ibase_db_link **ib_link, ibase_trans **trans) in _php_ibase_get_link_trans() argument
563 ZEND_FETCH_RESOURCE(*trans, ibase_trans *, link_id, -1, LE_TRANS, le_trans); in _php_ibase_get_link_trans()
564 if ((*trans)->link_cnt > 1) { in _php_ibase_get_link_trans()
569 *ib_link = (*trans)->db_link[0]; in _php_ibase_get_link_trans()
575 *trans = NULL; in _php_ibase_get_link_trans()
591 if (p->trans != NULL) { in _php_ibase_commit_link()
593 if (p->trans->handle != NULL) { in _php_ibase_commit_link()
595 if (isc_commit_transaction(IB_STATUS, &p->trans->handle)) { in _php_ibase_commit_link()
599 efree(p->trans); /* default transaction is not a registered resource: clean up */ in _php_ibase_commit_link()
601 if (p->trans->handle != NULL) { in _php_ibase_commit_link()
604 if (isc_rollback_transaction(IB_STATUS, &p->trans->handle)) { in _php_ibase_commit_link()
609 for (j = 0; j < p->trans->link_cnt; ++j) { in _php_ibase_commit_link()
610 if (p->trans->db_link[j] == link) { in _php_ibase_commit_link()
611 p->trans->db_link[j] = NULL; in _php_ibase_commit_link()
669 ibase_trans *trans = (ibase_trans *)rsrc->ptr; in _php_ibase_free_trans() local
673 if (trans->handle != NULL) { in _php_ibase_free_trans()
675 if (isc_rollback_transaction(IB_STATUS, &trans->handle)) { in _php_ibase_free_trans()
681 for (i = 0; i < trans->link_cnt; ++i) { in _php_ibase_free_trans()
682 if (trans->db_link[i] != NULL) { in _php_ibase_free_trans()
684 for (l = &trans->db_link[i]->tr_list; *l != NULL; l = &(*l)->next) { in _php_ibase_free_trans()
685 if ( (*l)->trans == trans) { in _php_ibase_free_trans()
694 efree(trans); in _php_ibase_free_trans()
1111 if (l->trans != NULL) l->trans->handle = NULL; in PHP_FUNCTION()
1258 ib_link[i]->tr_list->trans = NULL; in PHP_FUNCTION()
1265 (*l)->trans = ib_trans; in PHP_FUNCTION()
1273 int _php_ibase_def_trans(ibase_db_link *ib_link, ibase_trans **trans TSRMLS_DC) /* {{{ */ in _php_ibase_def_trans()
1283 ib_link->tr_list->trans = NULL; in _php_ibase_def_trans()
1287 if (*trans == NULL) { in _php_ibase_def_trans()
1288 ibase_trans *tr = ib_link->tr_list->trans; in _php_ibase_def_trans()
1296 ib_link->tr_list->trans = tr; in _php_ibase_def_trans()
1304 *trans = tr; in _php_ibase_def_trans()
1312 ibase_trans *trans = NULL; in _php_ibase_trans_end() local
1327 if (ib_link->tr_list == NULL || ib_link->tr_list->trans == NULL) { in _php_ibase_trans_end()
1332 trans = ib_link->tr_list->trans; in _php_ibase_trans_end()
1336 ZEND_FETCH_RESOURCE(trans, ibase_trans *, &arg, -1, LE_TRANS, le_trans); in _php_ibase_trans_end()
1341 if (ib_link->tr_list == NULL || ib_link->tr_list->trans == NULL) { in _php_ibase_trans_end()
1346 trans = ib_link->tr_list->trans; in _php_ibase_trans_end()
1352 result = isc_rollback_transaction(IB_STATUS, &trans->handle); in _php_ibase_trans_end()
1355 result = isc_commit_transaction(IB_STATUS, &trans->handle); in _php_ibase_trans_end()
1358 result = isc_rollback_retaining(IB_STATUS, &trans->handle); in _php_ibase_trans_end()
1361 result = isc_commit_retaining(IB_STATUS, &trans->handle); in _php_ibase_trans_end()
1419 ibase_trans *trans = NULL; in PHP_FUNCTION() local
1435 PHP_IBASE_LINK_TRANS(link, ib_link, trans); in PHP_FUNCTION()
1450 if (isc_dsql_exec_immed2(IB_STATUS, &ib_link->handle, &trans->handle, 0, query, in PHP_FUNCTION()