From 842ea0bd468334c2b4bb1904ced783bc854f84c9 Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sat, 19 Sep 2015 23:24:09 +0200 Subject: [PATCH] Add namespace to routine call MSSQL is picky about this, shouldn't affect the drivers that don't use namespaces. --- adminer/call.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/call.inc.php b/adminer/call.inc.php index 09592544..befd36c1 100644 --- a/adminer/call.inc.php +++ b/adminer/call.inc.php @@ -29,7 +29,7 @@ if (!$error && $_POST) { $call[] = (isset($out[$key]) ? "@" . idf_escape($field["field"]) : $val); } - $query = (isset($_GET["callf"]) ? "SELECT" : "CALL") . " " . idf_escape($PROCEDURE) . "(" . implode(", ", $call) . ")"; + $query = (isset($_GET["callf"]) ? "SELECT" : "CALL") . " " . (isset($_GET["ns"]) ? idf_escape($_GET["ns"]) . "." : "" ) . idf_escape($PROCEDURE) . "(" . implode(", ", $call) . ")"; echo "

" . h($query) . " " . lang('Edit') . "\n"; if (!$connection->multi_query($query)) {