]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use quoteIdentifier with proper objects
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 21 Oct 2013 19:31:57 +0000 (22:31 +0300)
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>
Mon, 21 Oct 2013 19:31:57 +0000 (22:31 +0300)
lib/private/db/mdb2schemamanager.php

index 8a818466f74df854cfd1bac98c68e19c232dfbcd..416e2f5542644e192228fa3eb95664fee80b4dcb 100644 (file)
@@ -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);
                }