]> granicus.if.org Git - php/commitdiff
autocommit flag gets set always by PDO before invoking this method;
authorWez Furlong <wez@php.net>
Sun, 13 Feb 2005 06:37:29 +0000 (06:37 +0000)
committerWez Furlong <wez@php.net>
Sun, 13 Feb 2005 06:37:29 +0000 (06:37 +0000)
we should unconditionally inspect it here.

ext/pdo_mysql/mysql_driver.c

index c9ee6dbf861e87ffc075c764c2381c0084592b72..37349c8c9c5549f6fe72d353330bfd1b403e134f 100755 (executable)
@@ -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)) {