diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/relational/Namespace.java b/hibernate-core/src/main/java/org/hibernate/boot/model/relational/Namespace.java index 34e2cf259e..1ccd660fb1 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/relational/Namespace.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/relational/Namespace.java @@ -41,7 +41,7 @@ public class Namespace { database.getPhysicalNamingStrategy() .toPhysicalCatalogName( name.getCatalog(), database.getJdbcEnvironment() ), database.getPhysicalNamingStrategy() - .toPhysicalCatalogName( name.getSchema(), database.getJdbcEnvironment() ) + .toPhysicalSchemaName( name.getSchema(), database.getJdbcEnvironment() ) ); log.debugf(