summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-12 08:26:40 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-12 08:26:40 +0100
commit20bd7bc3f9e3c370954a0abead4f87043b99e040 (patch)
tree254a9f95d69a7a63394d02cbf635dc6f89bae2ba /system
parent6f0fd79754d29e8f0dde8d3d385e8338eadce61e (diff)
Fix _limit()
Diffstat (limited to 'system')
-rw-r--r--system/database/drivers/sqlite3/sqlite3_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/sqlite3/sqlite3_driver.php b/system/database/drivers/sqlite3/sqlite3_driver.php
index 6affb8745..ae0091cea 100644
--- a/system/database/drivers/sqlite3/sqlite3_driver.php
+++ b/system/database/drivers/sqlite3/sqlite3_driver.php
@@ -544,7 +544,7 @@ class CI_DB_sqlite3_driver extends CI_DB {
*/
protected function _limit($sql, $limit, $offset)
{
- return $sql.($offset ? $offset.',' : '').$limit;
+ return $sql.' LIMIT '.($offset ? $offset.',' : '').$limit;
}
// --------------------------------------------------------------------