From 319abbaf2f4eb38107118abdaf557c3fde20817d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 27 Sep 2011 02:24:20 +0200 Subject: [PATCH] Set autocommit --- adminer/drivers/mysql.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index fe8d17b7..daabae7a 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -250,7 +250,7 @@ if (!defined("DRIVER")) { $connection = new Min_DB; $credentials = $adminer->credentials(); if ($connection->connect($credentials[0], $credentials[1], $credentials[2])) { - $connection->query("SET sql_quote_show_create = 1"); + $connection->query("SET sql_quote_show_create = 1, autocommit = 1"); return $connection; } $return = $connection->error; diff --git a/changes.txt b/changes.txt index efc81a15..b2c01528 100644 --- a/changes.txt +++ b/changes.txt @@ -5,6 +5,7 @@ Ctrl+click on button opens form to blank window SET DEFAULT foreign key action Trim table and column names (bug #3405309) Error message with no response from server in AJAX +MySQL: set autocommit after connect PostgreSQL: fix alter foreign key PostgreSQL over PDO: connect if the eponymous database does not exist (bug #3391619) Boolean search (Editor)