Set character set right after connect

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@783 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-03 05:14:49 +00:00
parent 2c445a86c1
commit 70ade15c9f
3 changed files with 1 additions and 2 deletions

View File

@@ -17,7 +17,6 @@ if (!$error && $_POST) {
$dbh2 = (strlen($_GET["db"]) ? connect() : null); // connection for exploring indexes (to not replace FOUND_ROWS()) //! PDO - silent error
if (is_object($dbh2)) {
$dbh2->select_db($_GET["db"]);
$dbh2->query("SET CHARACTER SET utf8");
}
while (strlen($query)) {
if (!$offset && preg_match('~^\\s*DELIMITER\\s+(.+)~i', $query, $match)) {