diff --git a/src/Metadata/MetadataFactory.php b/src/Metadata/MetadataFactory.php
index <HASH>..<HASH> 100644
--- a/src/Metadata/MetadataFactory.php
+++ b/src/Metadata/MetadataFactory.php
@@ -54,6 +54,8 @@ final class MetadataFactory
                 'tables.TABLE_NAME AS name'
             ])
             ->from('information_schema.TABLES', 'tables')
+            ->where('TABLE_SCHEMA = :schema')
+            ->setParameter('schema', $databaseName)
             ->execute();
 
         $tableNameList = [];
Fix retrieval of tables - restrict to selected database