1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 00:28:34 +02:00

Set character set for indexes connection

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@754 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-06-22 10:49:20 +00:00
parent fda1a43e45
commit ee8434739f

View File

@@ -17,6 +17,7 @@ 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)) {