summaryrefslogtreecommitdiff
path: root/modules/search
diff options
context:
space:
mode:
authorRomain LE DISEZ <romain.git@ledisez.net>2009-06-23 16:08:55 +0800
committerBharat Mediratta <bharat@menalto.com>2009-06-24 06:05:56 +0800
commitda09185a4baa739dd011804eb1301cdf2d126c11 (patch)
treec5990e4255f82b6e2feb357e55714181678505f8 /modules/search
parent297ac6ebd15bc53ce6c7d96b659b22fb3b220d74 (diff)
SQL is case insensitive
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
Diffstat (limited to 'modules/search')
-rw-r--r--modules/search/helpers/search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php
index 9046ad2d..ea8dad81 100644
--- a/modules/search/helpers/search.php
+++ b/modules/search/helpers/search.php
@@ -34,11 +34,11 @@ class search_Core {
// Count the total number of rows. We can't do this with our regular query because of the
// limit statement. It's possible that if we get rid of the limit (but keep the offset) on
// the 2nd query and combine the two, it might be faster than making 2 separate queries.
- $count_query = "SELECT COUNT(*) AS C " .
+ $count_query = "SELECT COUNT(*) AS c " .
"FROM {items} JOIN {search_records} ON ({items}.`id` = {search_records}.`item_id`) " .
"WHERE MATCH({search_records}.`data`) AGAINST ('$q' IN BOOLEAN MODE) " .
$access_sql;
- $count = $db->query($count_query)->current()->C;
+ $count = $db->query($count_query)->current()->c;
$query = "SELECT {items}.*, MATCH({search_records}.`data`) AGAINST ('$q') AS `score` " .
"FROM {items} JOIN {search_records} ON ({items}.`id` = {search_records}.`item_id`) " .