@@ -529,7 +529,7 @@ static void firebird_handle_closer(pdo_dbh_t *dbh) /* {{{ */
529
529
530
530
if (H -> tr ) {
531
531
if (dbh -> auto_commit ) {
532
- php_firebird_commit_transaction (dbh , /* release */ false);
532
+ php_firebird_commit_transaction (dbh , /* retain */ false);
533
533
} else {
534
534
php_firebird_rollback_transaction (dbh );
535
535
}
@@ -822,12 +822,12 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
822
822
* If in autocommit mode and in transaction, we will need to close the transaction once.
823
823
*/
824
824
if (dbh -> auto_commit && H -> tr ) {
825
- if (!php_firebird_commit_transaction (dbh , /* release */ false)) {
825
+ if (!php_firebird_commit_transaction (dbh , /* retain */ false)) {
826
826
return false;
827
827
}
828
828
}
829
829
830
- if (!php_firebird_begin_transaction (dbh , /* manually */ false)) {
830
+ if (!php_firebird_begin_transaction (dbh , /* auto commit mode */ false)) {
831
831
return false;
832
832
}
833
833
H -> in_manually_txn = 1 ;
@@ -1000,7 +1000,7 @@ static bool pdo_firebird_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val
1000
1000
* close the transaction if exists.
1001
1001
*/
1002
1002
if (H -> tr ) {
1003
- if (!php_firebird_commit_transaction (dbh , /* release */ false)) {
1003
+ if (!php_firebird_commit_transaction (dbh , /* retain */ false)) {
1004
1004
return false;
1005
1005
}
1006
1006
}
@@ -1106,7 +1106,7 @@ static bool pdo_firebird_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val
1106
1106
H -> is_writable_txn = bval ;
1107
1107
if (dbh -> auto_commit ) {
1108
1108
if (H -> tr ) {
1109
- if (!php_firebird_commit_transaction (dbh , /* release */ false)) {
1109
+ if (!php_firebird_commit_transaction (dbh , /* retain */ false)) {
1110
1110
/* In case of error, revert the setting */
1111
1111
H -> is_writable_txn = !bval ;
1112
1112
return false;
0 commit comments