summaryrefslogtreecommitdiffstats
path: root/lib/db.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-03-12 15:33:37 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-03-12 15:39:44 +0100
commitec1685311258935548512be3698b59512b084de5 (patch)
tree7e6c226d30b217ab7e9375a6d987fbe63a15bf67 /lib/db.php
parent9d4d399aa3296c40daed863a7ed31601c1c724c3 (diff)
downloadnextcloud-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.php6
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;