diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-06-04 14:56:56 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-06-04 14:56:56 +0200 |
commit | 9d533aef135dff9dd3465f993283d6e49a9983a5 (patch) | |
tree | 136b1dc1fb2b9db46ac6d7086fb51dc1d04b277d /system/database/drivers/sqlite | |
parent | 5036c9caabb12f90b9533d7fb417610e02a652ff (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.php | 6 |
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; } // -------------------------------------------------------------------- |