enable UTF-8 charset on mssql
disable MDB2_PORTABILITY_EMPTY_TO_NULL for mssql to allow insert of empty string to no null fields
This commit is contained in:
parent
9d4d399aa3
commit
ec16853112
1 changed files with 4 additions and 2 deletions
|
@ -292,8 +292,10 @@ class OC_DB {
|
|||
'username' => $user,
|
||||
'password' => $pass,
|
||||
'hostspec' => $host,
|
||||
'database' => $name
|
||||
);
|
||||
'database' => $name,
|
||||
'charset' => 'UTF-8'
|
||||
);
|
||||
$options['portability'] = $options['portability'] - MDB2_PORTABILITY_EMPTY_TO_NULL;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue