From: Jakub Vrana Date: Sun, 24 Oct 2010 09:52:01 +0000 (+0200) Subject: Order by DESC with grouping X-Git-Tag: v3.1.0~34 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=b05684a5c9ca8cc93b330728a312d883a4dd6c9a;p=adminer.git Order by DESC with grouping --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index c97e112d..887ba0f9 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -254,7 +254,8 @@ if (!$columns) { if ($name != "") { $rank++; $names[$key] = $name; - echo '' . apply_sql_function($val["fun"], $name) . ""; //! columns looking like functions + $column = idf_escape($key); + echo '' . apply_sql_function($val["fun"], $name) . ""; // $order[0] == $key - COUNT(*) //! columns looking like functions } $functions[$key] = $val["fun"]; next($select);