From 47d1c2ad65f1b837ce81c2ab23146fbc87b09d9f Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 13 Feb 2005 06:37:29 +0000 Subject: [PATCH] autocommit flag gets set always by PDO before invoking this method; we should unconditionally inspect it here. --- ext/pdo_mysql/mysql_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) { -- 2.50.1