From e0fbf333e7ddec33e31c261b5ec4968d700806eb Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 18 Aug 2009 09:16:04 +0000 Subject: [PATCH] Rename distinct to count distinct git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@975 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/adminer.inc.php | 2 +- adminer/select.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 9e9f8070..461c896b 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -1,7 +1,7 @@ ", "<=", ">=", "!=", "LIKE", "REGEXP", "IN", "IS NULL", "NOT LIKE", "NOT REGEXP", "NOT IN", "IS NOT NULL"); /** Name in title and navigation diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 2daaf428..d1127664 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -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 ); }