From 97aff7c64ee8164a6ba468b6ccb2ee05fa689cf1 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk <victor.dubiniuk@gmail.com> Date: Mon, 21 Oct 2013 22:31:57 +0300 Subject: [PATCH] Use quoteIdentifier with proper objects --- lib/private/db/mdb2schemamanager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/db/mdb2schemamanager.php b/lib/private/db/mdb2schemamanager.php index 8a818466f7..416e2f5542 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); } -- GitLab