Skip to content

Commit aef780e

Browse files
committed
Replaced all usage of catalog with schema.
Catalog was used by mistake. Spring Data JDBC has no support for multiple catalogs, only for multiple schema. Closes #1729
1 parent 8e1e060 commit aef780e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/mapping/schema/LiquibaseChangeSetWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ private SchemaDiff differenceOf(Database database) throws LiquibaseException {
329329

330330
Tables existingTables = getLiquibaseModel(database);
331331
Tables mappedEntities = Tables.from(mappingContext.getPersistentEntities().stream().filter(schemaFilter),
332-
sqlTypeMapping, database.getDefaultCatalogName());
332+
sqlTypeMapping, database.getDefaultSchemaName());
333333

334334
return SchemaDiff.diff(mappedEntities, existingTables, nameComparator);
335335
}
@@ -431,7 +431,7 @@ private Tables getLiquibaseModel(Database targetDatabase) throws LiquibaseExcept
431431
continue;
432432
}
433433

434-
Table tableModel = new Table(table.getSchema().getCatalogName(), table.getName());
434+
Table tableModel = new Table(table.getSchema().getName(), table.getName());
435435

436436
List<liquibase.structure.core.Column> columns = table.getColumns();
437437

0 commit comments

Comments
 (0)