couple of conceptual errors here

This commit is contained in:
Wez Furlong 2005-06-11 02:50:20 +00:00
parent 0638c657e1
commit f124c2086e

View file

@ -1116,11 +1116,10 @@ static void dbh_free(pdo_dbh_t *dbh TSRMLS_DC)
static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS_DC) static void pdo_dbh_free_storage(pdo_dbh_t *dbh TSRMLS_DC)
{ {
if (dbh->methods->rollback) { if (dbh->methods && dbh->methods->rollback) {
/* roll back transactions, that are possibly nested, even though we don't /* roll back transactions, that are possibly nested, even though we don't
* official support them */ * official support them */
while (dbh->methods->rollback(dbh TSRMLS_CC)) dbh->methods->rollback(dbh TSRMLS_CC);
;
dbh->in_txn = 0; dbh->in_txn = 0;
} }