Skip to content

Commit cf2ea9c

Browse files
committed
fix function name
1 parent 10b02c5 commit cf2ea9c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ext/pdo_firebird/firebird_driver.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#include "php_pdo_firebird_int.h"
3333

3434
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);
3636
static bool _firebird_rollback_transaction(pdo_dbh_t *dbh, bool retain);
3737

3838
const char CHR_LETTER = 1;
@@ -478,7 +478,7 @@ static void firebird_handle_closer(pdo_dbh_t *dbh) /* {{{ */
478478

479479
if (H->tr) {
480480
if (dbh->auto_commit) {
481-
_firebird_commit_transaction(dbh, false);
481+
firebird_commit_transaction(dbh, false);
482482
} else {
483483
_firebird_rollback_transaction(dbh, false);
484484
}
@@ -646,7 +646,7 @@ static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const zend_string *sql) /*
646646

647647
/* commit if we're in auto_commit mode */
648648
if (dbh->auto_commit && !H->in_manually_txn) {
649-
_firebird_commit_transaction(dbh, true);
649+
firebird_commit_transaction(dbh, true);
650650
}
651651

652652
free_statement:
@@ -698,8 +698,8 @@ static zend_string* firebird_handle_quoter(pdo_dbh_t *dbh, const zend_string *un
698698
}
699699
/* }}} */
700700

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) /* {{{ */
703703
{
704704
pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
705705
char tpb[8] = { isc_tpb_version3 }, *ptpb = tpb+1;
@@ -756,11 +756,11 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
756756
{
757757
pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
758758

759-
if (dbh->auto_commit && H->tr && !_firebird_commit_transaction(dbh, false)) {
759+
if (dbh->auto_commit && H->tr && !firebird_commit_transaction(dbh, false)) {
760760
return false;
761761
}
762762

763-
if (!_firebird_begin_transaction(dbh)) {
763+
if (!firebird_begin_transaction(dbh)) {
764764
return false;
765765
}
766766

@@ -769,8 +769,8 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
769769
}
770770
/* }}} */
771771

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) /* {{{ */
774774
{
775775
pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
776776

@@ -795,7 +795,7 @@ static bool firebird_handle_manually_commit(pdo_dbh_t *dbh) /* {{{ */
795795
{
796796
pdo_firebird_db_handle *H = (pdo_firebird_db_handle *)dbh->driver_data;
797797

798-
if (!_firebird_commit_transaction(dbh, dbh->auto_commit)) {
798+
if (!firebird_commit_transaction(dbh, dbh->auto_commit)) {
799799
return false;
800800
}
801801

@@ -901,12 +901,12 @@ static bool firebird_handle_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *
901901
H->last_app_error = "Cannot enable auto-commit while a transaction is already open";
902902
return false;
903903
}
904-
if (!H->tr && !_firebird_begin_transaction(dbh)) {
904+
if (!H->tr && !firebird_begin_transaction(dbh)) {
905905
return false;
906906
}
907907
} else {
908908
/* close the transaction */
909-
if (H->tr && !_firebird_commit_transaction(dbh, false)) {
909+
if (H->tr && !firebird_commit_transaction(dbh, false)) {
910910
return false;
911911
}
912912
H->in_manually_txn = 0;
@@ -1170,7 +1170,7 @@ static int pdo_firebird_handle_factory(pdo_dbh_t *dbh, zval *driver_options) /*
11701170

11711171
H->in_manually_txn = 0;
11721172
if (dbh->auto_commit && !H->tr) {
1173-
ret = _firebird_begin_transaction(dbh);
1173+
ret = firebird_begin_transaction(dbh);
11741174
}
11751175

11761176
if (!ret) {

0 commit comments

Comments
 (0)