Skip to content

Commit 4967d08

Browse files
committed
be consistent in comments
1 parent 00dbd49 commit 4967d08

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/pdo_firebird/firebird_driver.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ static void firebird_handle_closer(pdo_dbh_t *dbh) /* {{{ */
529529

530530
if (H->tr) {
531531
if (dbh->auto_commit) {
532-
php_firebird_commit_transaction(dbh, /* release */ false);
532+
php_firebird_commit_transaction(dbh, /* retain */ false);
533533
} else {
534534
php_firebird_rollback_transaction(dbh);
535535
}
@@ -822,12 +822,12 @@ static bool firebird_handle_manually_begin(pdo_dbh_t *dbh) /* {{{ */
822822
* If in autocommit mode and in transaction, we will need to close the transaction once.
823823
*/
824824
if (dbh->auto_commit && H->tr) {
825-
if (!php_firebird_commit_transaction(dbh, /* release */ false)) {
825+
if (!php_firebird_commit_transaction(dbh, /* retain */ false)) {
826826
return false;
827827
}
828828
}
829829

830-
if (!php_firebird_begin_transaction(dbh, /* manually */ false)) {
830+
if (!php_firebird_begin_transaction(dbh, /* auto commit mode */ false)) {
831831
return false;
832832
}
833833
H->in_manually_txn = 1;
@@ -1000,7 +1000,7 @@ static bool pdo_firebird_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val
10001000
* close the transaction if exists.
10011001
*/
10021002
if (H->tr) {
1003-
if (!php_firebird_commit_transaction(dbh, /* release */ false)) {
1003+
if (!php_firebird_commit_transaction(dbh, /* retain */ false)) {
10041004
return false;
10051005
}
10061006
}
@@ -1106,7 +1106,7 @@ static bool pdo_firebird_set_attribute(pdo_dbh_t *dbh, zend_long attr, zval *val
11061106
H->is_writable_txn = bval;
11071107
if (dbh->auto_commit) {
11081108
if (H->tr) {
1109-
if (!php_firebird_commit_transaction(dbh, /* release */ false)) {
1109+
if (!php_firebird_commit_transaction(dbh, /* retain */ false)) {
11101110
/* In case of error, revert the setting */
11111111
H->is_writable_txn = !bval;
11121112
return false;

0 commit comments

Comments
 (0)