]> granicus.if.org Git - php/commitdiff
and the lesson is, test everything before you commit at 2am
authorWez Furlong <wez@php.net>
Sat, 11 Jun 2005 12:36:12 +0000 (12:36 +0000)
committerWez Furlong <wez@php.net>
Sat, 11 Jun 2005 12:36:12 +0000 (12:36 +0000)
ext/pdo/pdo_dbh.c

index 53859d49314e65192c0d942ca8c90ee83e6693a0..fc7c94d56f8cd0fbb332a85d63474829fc1c41ee 100755 (executable)
@@ -1116,9 +1116,7 @@ static void dbh_free(pdo_dbh_t *dbh TSRMLS_DC)
 
 static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS_DC)
 {
-       if (dbh->methods && dbh->methods->rollback) {
-               /* roll back transactions, that are possibly nested, even though we don't
-                * official support them */
+       if (dbh->in_txn && dbh->methods && dbh->methods->rollback) {
                dbh->methods->rollback(dbh TSRMLS_CC);
                dbh->in_txn = 0;
        }