Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2011-12-28 17:40:31 +0400
committerMarc Delisle <marc@infomarc.info>2011-12-28 17:40:31 +0400
commitf7a9d2a36a5cedd0b380e8ca89de856a44da1874 (patch)
tree79dbc866e852d3c08a5c924b1d4a930fde65a10b /sql.php
parentcd294e5b97c723fa85e29d2b2c43eaa48e60c60a (diff)
bug #3463933 [display] SELECT DISTINCT displays wrong total records found
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql.php b/sql.php
index 6b2628aca6..e22a32dbda 100644
--- a/sql.php
+++ b/sql.php
@@ -494,6 +494,7 @@ if (isset($GLOBALS['show_as_php']) || !empty($GLOBALS['validatequery'])) {
if (!$is_group
&& !isset($analyzed_sql[0]['queryflags']['union'])
+ && !isset($analyzed_sql[0]['queryflags']['distinct'])
&& !isset($analyzed_sql[0]['table_ref'][1]['table_name'])
&& (empty($analyzed_sql[0]['where_clause'])
|| $analyzed_sql[0]['where_clause'] == '1 ')