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>2006-01-25 17:23:26 +0300
committerMarc Delisle <marc@infomarc.info>2006-01-25 17:23:26 +0300
commitee90fc123c32fee6947e28b283a0e6ee9b0daccd (patch)
treede010dc5ac8edf4430c4cdf2bfe1e99cb7db1ef5
parentccec5e82bfe8a729528821e0b36313c8de0ea15f (diff)
use PMA_countRecordsi where possibleRELEASE_2_8_2_4RELEASE_2_8_1
-rw-r--r--db_search.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/db_search.php b/db_search.php
index 1009eb5f80..366d6f5f26 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;