summaryrefslogtreecommitdiffstats
path: root/lib/private/db
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-10-21 22:31:57 +0300
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2013-10-21 22:31:57 +0300
commit97aff7c64ee8164a6ba468b6ccb2ee05fa689cf1 (patch)
tree212eb4a48966fd4f3883d082257658ee760eba1b /lib/private/db
parente55d2359b1746e29b764a0d366afbb857b797341 (diff)
downloadnextcloud-server-97aff7c64ee8164a6ba468b6ccb2ee05fa689cf1.tar.gz
nextcloud-server-97aff7c64ee8164a6ba468b6ccb2ee05fa689cf1.zip
Use quoteIdentifier with proper objects
Diffstat (limited to 'lib/private/db')
-rw-r--r--lib/private/db/mdb2schemamanager.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php
index 8a818466f74..416e2f55426 100644
--- a/lib/private/db/mdb2schemamanager.php
+++ b/lib/private/db/mdb2schemamanager.php
@@ -77,6 +77,11 @@ class MDB2SchemaManager {
$comparator = new \Doctrine\DBAL\Schema\Comparator();
$schemaDiff = $comparator->compare($fromSchema, $toSchema);
+ $platform = $this->conn->getDatabasePlatform();
+ foreach($schemaDiff->changedTables as $tableDiff) {
+ $tableDiff->name = $platform->quoteIdentifier($tableDiff->name);
+ }
+
if ($generateSql) {
return $this->generateChangeScript($schemaDiff);
}