HHH-18538 Improve database connection info from configured DataSource

This commit is contained in:
Yanming Zhou 2024-08-29 10:59:38 +08:00 committed by Jan Schatteman
parent 8ddb40fa77
commit 46bb5011b5
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public class DatasourceConnectionProviderImpl implements ConnectionProvider, Con
@Override @Override
public DatabaseConnectionInfo getDatabaseConnectionInfo(Dialect dialect) { public DatabaseConnectionInfo getDatabaseConnectionInfo(Dialect dialect) {
return new DatabaseConnectionInfoImpl( return new DatabaseConnectionInfoImpl(
"Connecting through datasource" + dataSourceJndiName, "Connecting through datasource '" + (dataSourceJndiName != null ? dataSourceJndiName : dataSource) + "'",
null, null,
dialect.getVersion(), dialect.getVersion(),
null, null,