summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-06-25 00:21:00 +0200
committerAndrey Andreev <narf@bofh.bg>2012-06-25 00:21:00 +0200
commitb7ed4b007c4971014f7ae6d95b73354894ac24db (patch)
treefe228e696c9b64b3823c3d8150eaa5cd3c92a624 /system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
parent7151e80ea8653638b4729a6a6271f792aabdfe03 (diff)
Add pdo_firebird subdriver
Diffstat (limited to 'system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php')
-rw-r--r--system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php b/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
index cee936aa5..042920714 100644
--- a/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
+++ b/system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
@@ -73,7 +73,7 @@ class CI_DB_pdo_dblib_driver extends CI_DB_pdo_driver {
}
else
{
- if ( ! empty($this->char_set) && strpos($this->dsn, 'charset=') === FALSE)
+ if ( ! empty($this->char_set) && strpos($this->dsn, 'charset=', 6) === FALSE)
{
$this->dsn .= ';charset='.$this->char_set;
}