From ee90fc123c32fee6947e28b283a0e6ee9b0daccd Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 25 Jan 2006 14:23:26 +0000 Subject: [PATCH] use PMA_countRecordsi where possible --- db_search.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db_search.php b/db_search.php index 1009eb5f8..366d6f5f2 100644 --- a/db_search.php +++ b/db_search.php @@ -116,6 +116,8 @@ if (isset($_REQUEST['submit_search'])) { // Builds complete queries $sql['select_fields'] = $sqlstr_select . ' * ' . $sqlstr_from . $sqlstr_where; + // here, I think we need to still use the COUNT clause, even for + // VIEWs, anyway we have a WHERE clause that should limit results $sql['select_count'] = $sqlstr_select . ' COUNT(*) AS count' . $sqlstr_from . $sqlstr_where; $sql['delete'] = $sqlstr_delete . $sqlstr_from . $sqlstr_where;