From a541087a6fb44b24f8d7044277391f282a326220 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Wed, 9 Jan 2013 10:44:14 -0500 Subject: Fix interbase limit issue for subqueries --- system/database/drivers/ibase/ibase_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/database') 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); } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b