From: Wez Furlong Date: Sun, 13 Feb 2005 06:37:29 +0000 (+0000) Subject: autocommit flag gets set always by PDO before invoking this method; X-Git-Tag: RELEASE_0_2_3~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47d1c2ad65f1b837ce81c2ab23146fbc87b09d9f;p=php autocommit flag gets set always by PDO before invoking this method; we should unconditionally inspect it here. --- diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index c9ee6dbf86..37349c8c9c 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -318,9 +318,9 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_ pdo_mysql_error(dbh); goto cleanup; } - - mysql_handle_autocommit(dbh); } + + mysql_handle_autocommit(dbh); #ifndef PHP_WIN32 if (vars[2].optval && !strcmp("localhost", vars[2].optval)) {