From d2b2e1eae3522070b31c72615d28bfc261e286d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 11 May 2004 09:45:13 +0000 Subject: [PATCH] Do not generate search query to include all fields, just SELECT * is enough. --- ChangeLog | 2 ++ db_search.php | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 11373db16..366f7827b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2004-05-11 Michal Čihař * libraries/sqlparser.lib.php: Modified pretty printer to display nicer queries generated by our db search. + * db_search.php: Do not generate search query to include all fields, just + SELECT * is enough. 2004-05-10 Marc Delisle * lang/serbian: Updated, thanks to Mihailo Stefanovic (mikis). diff --git a/db_search.php b/db_search.php index f43774489..dcd76cdfc 100644 --- a/db_search.php +++ b/db_search.php @@ -63,7 +63,6 @@ if (isset($submit_search)) { } // while PMA_DBI_free_result($res); unset($current, $res); - $sqlstr_fieldstoselect = ' ' . implode(', ', $tblfields); $tblfields_cnt = count($tblfields); // Table to use @@ -102,7 +101,7 @@ if (isset($submit_search)) { unset($fieldslikevalues); // Builds complete queries - $sql['select_fields'] = $sqlstr_select . $sqlstr_fieldstoselect . $sqlstr_from . $sqlstr_where; + $sql['select_fields'] = $sqlstr_select . ' * ' . $sqlstr_from . $sqlstr_where; $sql['select_count'] = $sqlstr_select . ' COUNT(*) AS count' . $sqlstr_from . $sqlstr_where; $sql['delete'] = $sqlstr_delete . $sqlstr_from . $sqlstr_where;