1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Rename distinct to count distinct

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@975 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-08-18 09:16:04 +00:00
parent 2b3bb44b00
commit e0fbf333e7
2 changed files with 2 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ foreach ($fields as $key => $field) {
function apply_sql_function($function, $column) {
return ($function
? ($function == "distinct" ? "COUNT(DISTINCT " : strtoupper("$function(")) . "$column)"
? ($function == "count distinct" ? "COUNT(DISTINCT " : strtoupper("$function(")) . "$column)"
: $column
);
}