summaryrefslogtreecommitdiffstats
path: root/system/database
diff options
context:
space:
mode:
authorTimothy Warren <tim@timshomepage.net>2013-01-09 16:44:14 +0100
committerTimothy Warren <tim@timshomepage.net>2013-01-09 16:44:14 +0100
commita541087a6fb44b24f8d7044277391f282a326220 (patch)
treeb201dab8936c3973dcb4916088aa6c57d5a790b9 /system/database
parent85adeed0ab67bcde7b5c57ddb44022c75e82078a (diff)
Fix interbase limit issue for subqueries
Diffstat (limited to 'system/database')
-rw-r--r--system/database/drivers/ibase/ibase_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/ibase/ibase_driver.php b/system/database/drivers/ibase/ibase_driver.php
index 87faf3d08..875f148a1 100644
--- a/system/database/drivers/ibase/ibase_driver.php
+++ b/system/database/drivers/ibase/ibase_driver.php
@@ -421,7 +421,7 @@ class CI_DB_ibase_driver extends CI_DB {
.($this->qb_offset ? $this->qb_offset.' TO '.($this->qb_limit + $this->qb_offset) : $this->qb_limit);
}
- return preg_replace('`SELECT`i', 'SELECT '.$select, $sql);
+ return preg_replace('`SELECT`i', 'SELECT '.$select, $sql, 1);
}
// --------------------------------------------------------------------