Use the default catalog when scanning the tables for hbm2ddl schema migration

Description

The test for HHH-10420 fails on SQL Server because it's not proper to send a "" as a catalog when the underlying mappings don't specify a custom catalog.

We should fallback to the default catalog supplied by the current JDBC connection instead.

Environment

None

Status

Assignee

Vlad Mihalcea

Reporter

Vlad Mihalcea

Fix versions

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure