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

PostgreSQL, Oracle: Set schema for EXPLAIN queries in SQL command (bug #706)

This commit is contained in:
Jakub Vrana
2019-11-11 12:10:46 +01:00
parent 0678ce1222
commit a4e997fe60
6 changed files with 19 additions and 6 deletions

View File

@@ -53,6 +53,9 @@ if (!$error && $_POST) {
$connection2 = connect(); // connection for exploring indexes and EXPLAIN (to not replace FOUND_ROWS()) //! PDO - silent error
if (is_object($connection2) && DB != "") {
$connection2->select_db(DB);
if ($_GET["ns"] != "") {
set_schema($_GET["ns"], $connection2);
}
}
$commands = 0;
$errors = array();