[Pkg-owncloud-commits] [owncloud] 02/153: Add UTF8 charset to connection params

David Prévot taffit at moszumanska.debian.org
Tue May 27 03:05:23 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 22edc42f548a148b323a375ecaf82141f18bc293
Author: Bart Visscher <bartv at thisnet.nl>
Date:   Sat Dec 7 15:09:36 2013 +0100

    Add UTF8 charset to connection params
---
 core/command/db/convertfromsqlite.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/core/command/db/convertfromsqlite.php b/core/command/db/convertfromsqlite.php
index 85cf1e3..d5003ed 100644
--- a/core/command/db/convertfromsqlite.php
+++ b/core/command/db/convertfromsqlite.php
@@ -99,6 +99,16 @@ class ConvertFromSqlite extends Command {
 		if ($input->getOption('port')) {
 			$connectionParams['port'] = $input->getOption('port');
 		}
+		switch ($type) {
+			case 'mysql':
+			case 'mssql':
+				$connectionParams['charset'] = 'UTF8';
+				break;
+			case 'oci':
+				$connectionParams['charset'] = 'AL32UTF8';
+				break;
+		}
+
 		$toDB = \Doctrine\DBAL\DriverManager::getConnection($connectionParams);
 
 		// create tables in new database

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list