summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/sqlite3
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-03-12 08:14:10 +0100
committerAndrey Andreev <narf@bofh.bg>2012-03-12 08:14:10 +0100
commit5fe23e863b79fe03fb8e73f7c77bd1c75f4de12d (patch)
treeb2fbb0e5e09dbe68494e356174c74f2806913002 /system/database/drivers/sqlite3
parent0aa9f2e86124194cd64fde098ba7a4169625d353 (diff)
parent3d933b6fad72d4b92f18187dd57f1d3c35f8936a (diff)
Merge changes from upstream and fix _limit()
Diffstat (limited to 'system/database/drivers/sqlite3')
-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;
}
// --------------------------------------------------------------------