Fix _limit()
diff --git a/system/database/drivers/sqlite3/sqlite3_driver.php b/system/database/drivers/sqlite3/sqlite3_driver.php
index 6affb87..ae0091c 100644
--- a/system/database/drivers/sqlite3/sqlite3_driver.php
+++ b/system/database/drivers/sqlite3/sqlite3_driver.php
@@ -544,7 +544,7 @@
*/
protected function _limit($sql, $limit, $offset)
{
- return $sql.($offset ? $offset.',' : '').$limit;
+ return $sql.' LIMIT '.($offset ? $offset.',' : '').$limit;
}
// --------------------------------------------------------------------