summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
authorAlex Bilbie <alex@alexbilbie.com>2012-06-02 20:17:22 +0200
committerAlex Bilbie <alex@alexbilbie.com>2012-06-02 20:17:22 +0200
commit32d3fa66434895c02fc1cb21c20bf834d4b38d13 (patch)
treea79ee5ce716d751d8eea313e23c2be2fd98d1ec5 /system/database/drivers
parent04d43fea485a65086ae814625c2d687ce6fc13c6 (diff)
Fixed bug in PostgreSQL introduced in 48a2baf0e288accd206f5da5031d29076e130792
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/postgre/postgre_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/postgre/postgre_driver.php b/system/database/drivers/postgre/postgre_driver.php
index 8c5168400..e5d861bd9 100644
--- a/system/database/drivers/postgre/postgre_driver.php
+++ b/system/database/drivers/postgre/postgre_driver.php
@@ -585,7 +585,7 @@ class CI_DB_postgre_driver extends CI_DB {
*/
protected function _limit($sql, $limit, $offset)
{
- return $sql.' LIMIT '.$limit.($offset === 0 ? '' : ' OFFSET '.$offset);
+ return $sql.' LIMIT '.$limit.($offset == 0 ? '' : ' OFFSET '.$offset);
}
// --------------------------------------------------------------------