From: Gargaj Date: Sat, 19 Sep 2015 21:24:09 +0000 (+0200) Subject: Add namespace to routine call X-Git-Tag: v4.3.0~46 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=842ea0bd468334c2b4bb1904ced783bc854f84c9;p=adminer.git Add namespace to routine call MSSQL is picky about this, shouldn't affect the drivers that don't use namespaces. --- 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)) {