Added support for limit() into update() statements in Active Record.
diff --git a/system/database/drivers/sqlite/sqlite_driver.php b/system/database/drivers/sqlite/sqlite_driver.php
index aa6738c..b701d6b 100644
--- a/system/database/drivers/sqlite/sqlite_driver.php
+++ b/system/database/drivers/sqlite/sqlite_driver.php
@@ -418,14 +418,16 @@
 	 * @param	array	the where clause

 	 * @return	string

 	 */

-	function _update($table, $values, $where)

+	function _update($table, $values, $where, $limit = FALSE)

 	{

 		foreach($values as $key => $val)

 		{

 			$valstr[] = $key." = ".$val;

 		}

+		

+		$limit = (!$limit) ? '' : ' LIMIT '.$limit;

 	

-		return "UPDATE ".$this->_escape_table($table)." SET ".implode(', ', $valstr)." WHERE ".implode(" ", $where);

+		return "UPDATE ".$this->_escape_table($table)." SET ".implode(', ', $valstr)." WHERE ".implode(" ", $where).$limit;

 	}

 	

 	// --------------------------------------------------------------------