Added $params to ODBC constructor, based on bug report #3374
diff --git a/system/database/drivers/odbc/odbc_driver.php b/system/database/drivers/odbc/odbc_driver.php
index a64eb56..7c59c30 100644
--- a/system/database/drivers/odbc/odbc_driver.php
+++ b/system/database/drivers/odbc/odbc_driver.php
@@ -39,8 +39,16 @@
var $_random_keyword;
- function CI_DB_odbc_driver()
+ function CI_DB_odbc_driver($params)
{
+ if (is_array($params))
+ {
+ foreach ($params as $key => $val)
+ {
+ $this->$key = $val;
+ }
+ }
+
$this->_random_keyword = ' RND('.time().')'; // database specific random keyword
}