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

Use use_sql

This commit is contained in:
Jakub Vrana
2025-02-26 18:47:25 +01:00
parent 848cd482e2
commit 4b47326ffa

View File

@@ -52,7 +52,7 @@ if (isset($_GET["mssql"])) {
} }
function select_db($database) { function select_db($database) {
return $this->query("USE " . idf_escape($database)); return $this->query(use_sql($database));
} }
function query($query, $unbuffered = false) { function query($query, $unbuffered = false) {
@@ -163,7 +163,7 @@ if (isset($_GET["mssql"])) {
function select_db($database) { function select_db($database) {
// database selection is separated from the connection so dbname in DSN can't be used // database selection is separated from the connection so dbname in DSN can't be used
return $this->query("USE " . idf_escape($database)); return $this->query(use_sql($database));
} }
} }
@@ -177,7 +177,7 @@ if (isset($_GET["mssql"])) {
} }
function select_db($database) { function select_db($database) {
return $this->query("USE " . idf_escape($database)); return $this->query(use_sql($database));
} }
} }
} }