summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-18 12:23:24 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-18 12:23:24 +0200
commitfad14b25148ca7202a036dc2b764feb0c8518838 (patch)
tree414e4b1aade1f075ebf5919368b78fedc0ff00f1
parent6ac514484fffd9700c6ecc57cfa1b1fd105e37f6 (diff)
Fix ODBC _limit()
-rw-r--r--system/database/drivers/odbc/odbc_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index 222c311c0..5ebba7aeb 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -342,7 +342,7 @@ class CI_DB_odbc_driver extends CI_DB {
*/
protected function _limit($sql, $limit, $offset)
{
- return $sql.($offset == 0 ? '' : $offset.', ').$limit;
+ return $sql.' LIMIT '.($offset == 0 ? '' : $offset.', ').$limit;
}
// --------------------------------------------------------------------