diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-12 15:33:37 +0100 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-03-12 15:39:44 +0100 |
commit | ec1685311258935548512be3698b59512b084de5 (patch) | |
tree | 7e6c226d30b217ab7e9375a6d987fbe63a15bf67 /lib/db.php | |
parent | 9d4d399aa3296c40daed863a7ed31601c1c724c3 (diff) | |
download | nextcloud-server-ec1685311258935548512be3698b59512b084de5.tar.gz nextcloud-server-ec1685311258935548512be3698b59512b084de5.zip |
enable UTF-8 charset on mssql
disable MDB2_PORTABILITY_EMPTY_TO_NULL for mssql to allow insert of empty string to no null fields
Diffstat (limited to 'lib/db.php')
-rw-r--r-- | lib/db.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/db.php b/lib/db.php index 347deac8519..9699b216f6f 100644 --- a/lib/db.php +++ b/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; |