summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/sqlite
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-04 14:56:56 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-04 14:56:56 +0200
commit9d533aef135dff9dd3465f993283d6e49a9983a5 (patch)
tree136b1dc1fb2b9db46ac6d7086fb51dc1d04b277d /system/database/drivers/sqlite
parent5036c9caabb12f90b9533d7fb417610e02a652ff (diff)
Fix an SQLite3 pconnect() bug + other minor changes
Diffstat (limited to 'system/database/drivers/sqlite')
-rw-r--r--system/database/drivers/sqlite/sqlite_driver.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/database/drivers/sqlite/sqlite_driver.php b/system/database/drivers/sqlite/sqlite_driver.php
index d9820e1b3..f52b1ba1b 100644
--- a/system/database/drivers/sqlite/sqlite_driver.php
+++ b/system/database/drivers/sqlite/sqlite_driver.php
@@ -404,16 +404,16 @@ class CI_DB_sqlite_driver extends CI_DB {
*/
protected function _limit($sql, $limit, $offset)
{
- if ($offset === 0)
+ if ($offset == 0)
{
$offset = '';
}
else
{
- $offset .= ", ";
+ $offset .= ', ';
}
- return $sql."LIMIT ".$offset.$limit;
+ return $sql.'LIMIT '.$offset.$limit;
}
// --------------------------------------------------------------------