mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
BUGFIX When MSSQL_USE_WINDOWS_AUTHENTICATION is enabled, ensure the connection parameters include CharacterSet, MultipleActiveResultSets as "UTF-U" and boolean false respectively
This commit is contained in:
parent
410d15cf08
commit
81de1e073f
@ -124,7 +124,10 @@ class MSSQLDatabase extends SS_Database {
|
||||
|
||||
// Windows authentication doesn't require a username and password
|
||||
if(defined('MSSQL_USE_WINDOWS_AUTHENTICATION') && MSSQL_USE_WINDOWS_AUTHENTICATION == true) {
|
||||
$connectionInfo = array();
|
||||
$connectionInfo = array(
|
||||
'CharacterSet' => 'UTF-8',
|
||||
'MultipleActiveResultSets' => false
|
||||
);
|
||||
} else {
|
||||
$connectionInfo = array(
|
||||
'UID' => $parameters['username'],
|
||||
|
Loading…
Reference in New Issue
Block a user