summaryrefslogtreecommitdiffstats
path: root/lib/private/db/mdb2schemamanager.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-05-06 14:46:59 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-03 11:18:45 +0200
commitc6053b283046c7db7201d60d341e279032394002 (patch)
treeed6ed658f567ef049089edeffd5a7089893daed9 /lib/private/db/mdb2schemamanager.php
parent6f71419f2b0e8e671274ca761e636ebe0a4067b3 (diff)
downloadnextcloud-server-c6053b283046c7db7201d60d341e279032394002.tar.gz
nextcloud-server-c6053b283046c7db7201d60d341e279032394002.zip
Quote identifiers on mysql
Diffstat (limited to 'lib/private/db/mdb2schemamanager.php')
-rw-r--r--lib/private/db/mdb2schemamanager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php
index 1a19e737da8..d6e0e77b54e 100644
--- a/lib/private/db/mdb2schemamanager.php
+++ b/lib/private/db/mdb2schemamanager.php
@@ -64,7 +64,9 @@ class MDB2SchemaManager {
return new SQLiteMigrator($this->conn);
} else if ($platform instanceof OraclePlatform) {
return new OracleMigrator($this->conn);
- } else if ($platform instanceof MySqlPlatform or $platform instanceof PostgreSqlPlatform) {
+ } else if ($platform instanceof MySqlPlatform) {
+ return new MySQLMigrator($this->conn);
+ } else if ($platform instanceof PostgreSqlPlatform) {
return new Migrator($this->conn);
} else {
return new NoCheckMigrator($this->conn);