mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Set auto-commit after establishing the connection, otherwise we have a crash.
This commit is contained in:
parent
f860c70362
commit
f57b8d6dc5
1 changed files with 2 additions and 2 deletions
|
@ -324,8 +324,6 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_handle_autocommit(dbh TSRMLS_CC);
|
|
||||||
|
|
||||||
if (vars[2].optval && !strcmp("localhost", vars[2].optval)) {
|
if (vars[2].optval && !strcmp("localhost", vars[2].optval)) {
|
||||||
unix_socket = vars[4].optval;
|
unix_socket = vars[4].optval;
|
||||||
} else {
|
} else {
|
||||||
|
@ -337,6 +335,8 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mysql_handle_autocommit(dbh TSRMLS_CC);
|
||||||
|
|
||||||
H->attached = 1;
|
H->attached = 1;
|
||||||
|
|
||||||
dbh->alloc_own_columns = 1;
|
dbh->alloc_own_columns = 1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue