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
|
@ -292,8 +292,10 @@ class OC_DB {
|
||||||
'username' => $user,
|
'username' => $user,
|
||||||
'password' => $pass,
|
'password' => $pass,
|
||||||
'hostspec' => $host,
|
'hostspec' => $host,
|
||||||
'database' => $name
|
'database' => $name,
|
||||||
|
'charset' => 'UTF-8'
|
||||||
);
|
);
|
||||||
|
$options['portability'] = $options['portability'] - MDB2_PORTABILITY_EMPTY_TO_NULL;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue