diff options
author | Romain LE DISEZ <romain.git@ledisez.net> | 2009-06-23 16:05:15 +0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-24 06:05:48 +0800 |
commit | 297ac6ebd15bc53ce6c7d96b659b22fb3b220d74 (patch) | |
tree | ec18249bb95ed5d575747672658674751d979f40 | |
parent | ba7163bd30939f87aa3786dd8583a361bc638baf (diff) |
Improve compatibility with other RDBMS
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
-rw-r--r-- | modules/search/helpers/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/search/helpers/search.php b/modules/search/helpers/search.php index 15efa3b2..9046ad2d 100644 --- a/modules/search/helpers/search.php +++ b/modules/search/helpers/search.php @@ -45,7 +45,7 @@ class search_Core { "WHERE MATCH({search_records}.`data`) AGAINST ('$q' IN BOOLEAN MODE) " . $access_sql . "ORDER BY `score` DESC " . - "LIMIT $offset, $limit"; + "LIMIT $limit OFFSET $offset"; return array($count, new ORM_Iterator(ORM::factory("item"), $db->query($query))); } |