Skip to content

Commit

Permalink
Avoid syntax error when loading index meta data for MySQl (#32045)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaigorJiang committed Jul 9, 2024
1 parent 8fa4725 commit 9e223a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public final class MySQLMetaDataLoader implements DialectMetaDataLoader {
public Collection<SchemaMetaData> load(final MetaDataLoaderMaterial material) throws SQLException {
Collection<TableMetaData> tableMetaDataList = new LinkedList<>();
Map<String, Collection<ColumnMetaData>> columnMetaDataMap = loadColumnMetaDataMap(material.getDataSource(), material.getActualTableNames());
Collection<String> viewNames = loadViewNames(material.getDataSource(), columnMetaDataMap.keySet());
Collection<String> viewNames = columnMetaDataMap.isEmpty() ? Collections.emptySet() : loadViewNames(material.getDataSource(), columnMetaDataMap.keySet());
Map<String, Collection<IndexMetaData>> indexMetaDataMap = columnMetaDataMap.isEmpty() ? Collections.emptyMap() : loadIndexMetaData(material.getDataSource(), columnMetaDataMap.keySet());
Map<String, Collection<ConstraintMetaData>> constraintMetaDataMap =
columnMetaDataMap.isEmpty() ? Collections.emptyMap() : loadConstraintMetaDataMap(material.getDataSource(), columnMetaDataMap.keySet());
Expand Down

0 comments on commit 9e223a3

Please sign in to comment.