diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-03-21 16:08:05 -0600 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-21 16:42:42 -0600 |
commit | 3329f44a76f960f7b73beb6bb4d717b10bfca28b (patch) | |
tree | bf915423161beb188c40928b0bbe25d82c57ed5d /lib/private/DB/Connection.php | |
parent | 1aef2f417b2004ee23c3071917e699e66b5353dd (diff) | |
download | nextcloud-server-3329f44a76f960f7b73beb6bb4d717b10bfca28b.tar.gz nextcloud-server-3329f44a76f960f7b73beb6bb4d717b10bfca28b.zip |
Address comments
* fix URL to documentation
* improve logic of UTF8mb4 check
* fix connection parameter creation - it's done already in ConnectionFactory::createConnectionParams
* remove unused attributes of MDB2SchemaReader
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/DB/Connection.php')
-rw-r--r-- | lib/private/DB/Connection.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 0ee58a54ece..9e116712642 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -419,9 +419,6 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { if (!$this->getDatabasePlatform() instanceof MySqlPlatform) { return true; } - if ($this->getParams()['charset'] === 'utf8mb4') { - return true; - } - return false; + return $this->getParams()['charset'] === 'utf8mb4'; } } |