diff options
| author | Wez Furlong <wez@php.net> | 2005-02-13 06:37:29 +0000 |
|---|---|---|
| committer | Wez Furlong <wez@php.net> | 2005-02-13 06:37:29 +0000 |
| commit | 47d1c2ad65f1b837ce81c2ab23146fbc87b09d9f (patch) | |
| tree | 70c2e107b6919da6eda64e59c69b1cdac759b052 /ext/pdo_mysql/mysql_driver.c | |
| parent | 078b77619a400269ba2c4ff9a201d81bc8bea572 (diff) | |
| download | php-git-47d1c2ad65f1b837ce81c2ab23146fbc87b09d9f.tar.gz | |
autocommit flag gets set always by PDO before invoking this method;
we should unconditionally inspect it here.
Diffstat (limited to 'ext/pdo_mysql/mysql_driver.c')
| -rwxr-xr-x | ext/pdo_mysql/mysql_driver.c | 4 |
1 files 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)) { |
