summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/mssql
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-11-19 10:14:23 +0100
committerAndrey Andreev <narf@bofh.bg>2012-11-19 10:14:23 +0100
commit4173fa05a067395e3bf8d5b5f3dedb8af59d3fa1 (patch)
treedc5854814855b44221462734a00e44fa3b7bbccc /system/database/drivers/mssql
parenta00f90c2973111f0d95ac129eba967e8269ea0d6 (diff)
Add db_set_charset() support for the mssql driver
Diffstat (limited to 'system/database/drivers/mssql')
-rw-r--r--system/database/drivers/mssql/mssql_driver.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/system/database/drivers/mssql/mssql_driver.php b/system/database/drivers/mssql/mssql_driver.php
index faa1e260d..d3e439d69 100644
--- a/system/database/drivers/mssql/mssql_driver.php
+++ b/system/database/drivers/mssql/mssql_driver.php
@@ -298,6 +298,19 @@ class CI_DB_mssql_driver extends CI_DB {
// --------------------------------------------------------------------
/**
+ * Set client character set
+ *
+ * @param string $charset
+ * @return bool
+ */
+ protected function _db_set_charset($charset)
+ {
+ return (@ini_set('mssql.charset', $charset) !== FALSE);
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Version number query string
*
* @return string