We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 774d6df + a037cdd commit 27b66c0Copy full SHA for 27b66c0
setup/src/Magento/Setup/Validator/DbValidator.php
@@ -142,7 +142,8 @@ public function checkDatabaseConnectionWithDriverOptions(
142
private function checkDatabaseName(\Magento\Framework\DB\Adapter\AdapterInterface $connection, $dbName)
143
{
144
try {
145
- $connection->query("SHOW TABLES FROM $dbName")->fetchAll(\PDO::FETCH_COLUMN, 0);
+ $query = sprintf("SHOW TABLES FROM `%s`", $dbName);
146
+ $connection->query($query)->fetchAll(\PDO::FETCH_COLUMN, 0);
147
return true;
148
} catch (\Exception $e) {
149
throw new \Magento\Setup\Exception(
0 commit comments