32
32
#include "php_pdo_firebird_int.h"
33
33
34
34
static int firebird_alloc_prepare_stmt (pdo_dbh_t * , const zend_string * , XSQLDA * , isc_stmt_handle * , HashTable * );
35
- static bool _firebird_commit_transaction (pdo_dbh_t * dbh , bool retain );
35
+ static bool firebird_commit_transaction (pdo_dbh_t * dbh , bool retain );
36
36
static bool _firebird_rollback_transaction (pdo_dbh_t * dbh , bool retain );
37
37
38
38
const char CHR_LETTER = 1 ;
@@ -478,7 +478,7 @@ static void firebird_handle_closer(pdo_dbh_t *dbh) /* {{{ */
478
478
479
479
if (H -> tr ) {
480
480
if (dbh -> auto_commit ) {
481
- _firebird_commit_transaction (dbh , false);
481
+ firebird_commit_transaction (dbh , false);
482
482
} else {
483
483
_firebird_rollback_transaction (dbh , false);
484
484
}
@@ -646,7 +646,7 @@ static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) /*
646
646
647
647
/* commit if we're in auto_commit mode */
648
648
if (dbh -> auto_commit && !H -> in_manually_txn ) {
649
- _firebird_commit_transaction (dbh , true);
649
+ firebird_commit_transaction (dbh , true);
650
650
}
651
651
652
652
free_statement :
@@ -698,8 +698,8 @@ static zend_string* firebird_handle_quoter(pdo_dbh_t *dbh, const zend_string *un
698
698
}
699
699
/* }}} */
700
700
701
- /* _firebird_begin_transaction */
702
- static bool _firebird_begin_transaction (pdo_dbh_t * dbh ) /* {{{ */
701
+ /* firebird_begin_transaction */
702
+ static bool firebird_begin_transaction (pdo_dbh_t * dbh ) /* {{{ */
703
703
{
704
704
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
705
705
char tpb [8 ] = { isc_tpb_version3 }, * ptpb = tpb + 1 ;
@@ -756,11 +756,11 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
756
756
{
757
757
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
758
758
759
- if (dbh -> auto_commit && H -> tr && !_firebird_commit_transaction (dbh , false)) {
759
+ if (dbh -> auto_commit && H -> tr && !firebird_commit_transaction (dbh , false)) {
760
760
return false;
761
761
}
762
762
763
- if (!_firebird_begin_transaction (dbh )) {
763
+ if (!firebird_begin_transaction (dbh )) {
764
764
return false;
765
765
}
766
766
@@ -769,8 +769,8 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
769
769
}
770
770
/* }}} */
771
771
772
- /* _firebird_commit_transaction */
773
- static bool _firebird_commit_transaction (pdo_dbh_t * dbh , bool retain ) /* {{{ */
772
+ /* firebird_commit_transaction */
773
+ static bool firebird_commit_transaction (pdo_dbh_t * dbh , bool retain ) /* {{{ */
774
774
{
775
775
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
776
776
@@ -795,7 +795,7 @@ static bool firebird_handle_manually_commit(pdo_dbh_t *dbh) /* {{{ */
795
795
{
796
796
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
797
797
798
- if (!_firebird_commit_transaction (dbh , dbh -> auto_commit )) {
798
+ if (!firebird_commit_transaction (dbh , dbh -> auto_commit )) {
799
799
return false;
800
800
}
801
801
@@ -901,12 +901,12 @@ static bool firebird_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *
901
901
H -> last_app_error = "Cannot enable auto-commit while a transaction is already open" ;
902
902
return false;
903
903
}
904
- if (!H -> tr && !_firebird_begin_transaction (dbh )) {
904
+ if (!H -> tr && !firebird_begin_transaction (dbh )) {
905
905
return false;
906
906
}
907
907
} else {
908
908
/* close the transaction */
909
- if (H -> tr && !_firebird_commit_transaction (dbh , false)) {
909
+ if (H -> tr && !firebird_commit_transaction (dbh , false)) {
910
910
return false;
911
911
}
912
912
H -> in_manually_txn = 0 ;
@@ -1170,7 +1170,7 @@ static int pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /*
1170
1170
1171
1171
H -> in_manually_txn = 0 ;
1172
1172
if (dbh -> auto_commit && !H -> tr ) {
1173
- ret = _firebird_begin_transaction (dbh );
1173
+ ret = firebird_begin_transaction (dbh );
1174
1174
}
1175
1175
1176
1176
if (!ret ) {
0 commit comments