Permalink
Browse files

Add db_set_charset() support for the mssql driver

  • Loading branch information...
1 parent a00f90c commit 4173fa05a067395e3bf8d5b5f3dedb8af59d3fa1 @narfbg narfbg committed Nov 19, 2012
Showing with 14 additions and 0 deletions.
  1. +13 −0 system/database/drivers/mssql/mssql_driver.php
  2. +1 −0 user_guide_src/source/changelog.rst
View
13 system/database/drivers/mssql/mssql_driver.php
@@ -298,6 +298,19 @@ public function insert_id()
// --------------------------------------------------------------------
/**
+ * 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
View
1 user_guide_src/source/changelog.rst
@@ -157,6 +157,7 @@ Release Date: Not Released
- Added escaping with *QUOTE_IDENTIFIER* setting detection.
- Added port handling support for UNIX-based systems (MSSQL driver).
- Added *OFFSET* support for SQL Server 2005 and above.
+ - Added ``db_set_charset()`` support (MSSQL driver).
- Improved support of the Oracle (OCI8) driver, including:
- Added DSN string support (Easy Connect and TNS).
- Added support for ``drop_table()`` in :doc:`Database Forge <database/forge>`.

0 comments on commit 4173fa0

Please sign in to comment.