Move SET SQL_QUOTE_SHOW_CREATE to mysql.inc.php
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@735 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
0eeab13218
commit
52f68a6763
|
@ -19,7 +19,6 @@ function connect_error() {
|
||||||
page_footer("db");
|
page_footer("db");
|
||||||
}
|
}
|
||||||
|
|
||||||
$dbh->query("SET SQL_QUOTE_SHOW_CREATE=1");
|
|
||||||
if (!(strlen($_GET["db"]) ? $dbh->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]) || isset($_GET["privileges"]) || isset($_GET["user"]) || isset($_GET["variables"]))) {
|
if (!(strlen($_GET["db"]) ? $dbh->select_db($_GET["db"]) : isset($_GET["sql"]) || isset($_GET["dump"]) || isset($_GET["database"]) || isset($_GET["processlist"]) || isset($_GET["privileges"]) || isset($_GET["user"]) || isset($_GET["variables"]))) {
|
||||||
if (strlen($_GET["db"])) {
|
if (strlen($_GET["db"])) {
|
||||||
unset($_SESSION["databases"][$_GET["server"]]);
|
unset($_SESSION["databases"][$_GET["server"]]);
|
||||||
|
|
|
@ -205,7 +205,11 @@ $unsigned = array("unsigned", "zerofill", "unsigned zerofill");
|
||||||
|
|
||||||
function connect() {
|
function connect() {
|
||||||
$dbh = new Min_DB;
|
$dbh = new Min_DB;
|
||||||
return ($dbh->connect($_GET["server"], $_SESSION["usernames"][$_GET["server"]], $_SESSION["passwords"][$_GET["server"]]) ? $dbh : $dbh->error);
|
if ($dbh->connect($_GET["server"], $_SESSION["usernames"][$_GET["server"]], $_SESSION["passwords"][$_GET["server"]])) {
|
||||||
|
$dbh->query("SET SQL_QUOTE_SHOW_CREATE=1");
|
||||||
|
return $dbh;
|
||||||
|
}
|
||||||
|
return $dbh->error;
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_databases() {
|
function get_databases() {
|
||||||
|
|
Loading…
Reference in a new issue