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 );
36
- static bool _firebird_rollback_transaction (pdo_dbh_t * dbh , bool retain );
37
35
38
36
const char CHR_LETTER = 1 ;
39
37
const char CHR_DIGIT = 2 ;
@@ -478,9 +476,9 @@ static void firebird_handle_closer(pdo_dbh_t *dbh) /* {{{ */
478
476
479
477
if (H -> tr ) {
480
478
if (dbh -> auto_commit ) {
481
- _firebird_commit_transaction (dbh , false);
479
+ firebird_commit_transaction (dbh , false);
482
480
} else {
483
- _firebird_rollback_transaction (dbh , false);
481
+ firebird_rollback_transaction (dbh , false);
484
482
}
485
483
}
486
484
H -> in_manually_txn = 0 ;
@@ -646,7 +644,7 @@ static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) /*
646
644
647
645
/* commit if we're in auto_commit mode */
648
646
if (dbh -> auto_commit && !H -> in_manually_txn ) {
649
- _firebird_commit_transaction (dbh , true);
647
+ firebird_commit_transaction (dbh , true);
650
648
}
651
649
652
650
free_statement :
@@ -756,7 +754,7 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
756
754
{
757
755
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
758
756
759
- if (dbh -> auto_commit && H -> tr && !_firebird_commit_transaction (dbh , false)) {
757
+ if (dbh -> auto_commit && H -> tr && !firebird_commit_transaction (dbh , false)) {
760
758
return false;
761
759
}
762
760
@@ -769,8 +767,8 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
769
767
}
770
768
/* }}} */
771
769
772
- /* _firebird_commit_transaction */
773
- static bool _firebird_commit_transaction (pdo_dbh_t * dbh , bool retain ) /* {{{ */
770
+ /* firebird_commit_transaction */
771
+ bool _firebird_commit_transaction (pdo_dbh_t * dbh , bool retain ) /* {{{ */
774
772
{
775
773
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
776
774
@@ -795,7 +793,7 @@ static bool firebird_handle_manually_commit(pdo_dbh_t *dbh) /* {{{ */
795
793
{
796
794
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
797
795
798
- if (!_firebird_commit_transaction (dbh , dbh -> auto_commit )) {
796
+ if (!firebird_commit_transaction (dbh , dbh -> auto_commit )) {
799
797
return false;
800
798
}
801
799
@@ -804,8 +802,8 @@ static bool firebird_handle_manually_commit(pdo_dbh_t *dbh) /* {{{ */
804
802
}
805
803
/* }}} */
806
804
807
- /* _firebird_rollback_transaction */
808
- static bool _firebird_rollback_transaction (pdo_dbh_t * dbh , bool retain ) /* {{{ */
805
+ /* firebird_rollback_transaction */
806
+ bool _firebird_rollback_transaction (pdo_dbh_t * dbh , bool retain ) /* {{{ */
809
807
{
810
808
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
811
809
@@ -830,7 +828,7 @@ static bool firebird_handle_manually_rollback(pdo_dbh_t *dbh) /* {{{ */
830
828
{
831
829
pdo_firebird_db_handle * H = (pdo_firebird_db_handle * )dbh -> driver_data ;
832
830
833
- if (!_firebird_rollback_transaction (dbh , dbh -> auto_commit )) {
831
+ if (!firebird_rollback_transaction (dbh , dbh -> auto_commit )) {
834
832
return false;
835
833
}
836
834
@@ -906,7 +904,7 @@ static bool firebird_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *
906
904
}
907
905
} else {
908
906
/* close the transaction */
909
- if (H -> tr && !_firebird_commit_transaction (dbh , false)) {
907
+ if (H -> tr && !firebird_commit_transaction (dbh , false)) {
910
908
return false;
911
909
}
912
910
H -> in_manually_txn = 0 ;
0 commit comments