From bacb45368a9cc6ef864ee6e69790d3b0fe680810 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 25 Jan 2006 15:29:17 +0000 Subject: [PATCH] verification for COUNT clause and VIEWs --- sql.php | 1 + 1 file changed, 1 insertion(+) diff --git a/sql.php b/sql.php index d587c4d34..ca84fbfb8 100644 --- a/sql.php +++ b/sql.php @@ -473,6 +473,7 @@ else { } else { $count_what = '*'; } + // this one does not apply to VIEWs $count_query = 'SELECT COUNT(' . $count_what . ') AS count'; }