summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/pdo/pdo_driver.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/database/drivers/pdo/pdo_driver.php b/system/database/drivers/pdo/pdo_driver.php
index 10ef00c49..98fffa021 100644
--- a/system/database/drivers/pdo/pdo_driver.php
+++ b/system/database/drivers/pdo/pdo_driver.php
@@ -68,6 +68,9 @@ class CI_DB_pdo_driver extends CI_DB {
{
$this->_like_escape_str = '';
$this->_like_escape_chr = '';
+
+ //Set the charset with the connection string
+ $this->hostname .= ";charset=" . $this->char_set;
}
else if (strpos($this->hostname, 'odbc') !== FALSE)
{
@@ -81,6 +84,9 @@ class CI_DB_pdo_driver extends CI_DB {
}
$this->hostname = $this->hostname . ";dbname=".$this->database;
+
+
+
$this->trans_enabled = FALSE;
$this->_random_keyword = ' RND('.time().')'; // database specific random keyword