enable UTF-8 charset on mssql

disable MDB2_PORTABILITY_EMPTY_TO_NULL for mssql to allow insert of empty string to no null fields
remotes/origin/stable6
Thomas Mueller 12 years ago
parent 9d4d399aa3
commit ec16853112
  1. 6
      lib/db.php

@ -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…
Cancel
Save