add toString()s to DialectResolutionInfo

to fix an ugly log message
This commit is contained in:
Gavin 2023-04-11 17:39:10 +02:00 committed by Gavin King
parent dd370313f2
commit 176978cc42
3 changed files with 15 additions and 0 deletions

View File

@ -102,4 +102,9 @@ public class DatabaseMetaDataDialectResolutionInfoAdapter implements DialectReso
public DatabaseMetaData getDatabaseMetadata() { public DatabaseMetaData getDatabaseMetadata() {
return databaseMetaData; return databaseMetaData;
} }
@Override
public String toString() {
return getMajor() + "." + getMinor();
}
} }

View File

@ -500,5 +500,10 @@ public class JdbcEnvironmentInitiator implements StandardServiceInitiator<JdbcEn
public DatabaseMetaData getDatabaseMetadata() { public DatabaseMetaData getDatabaseMetadata() {
return databaseMetadata; return databaseMetadata;
} }
@Override
public String toString() {
return getMajor() + "." + getMinor();
}
} }
} }

View File

@ -101,4 +101,9 @@ public class TestingDialectResolutionInfo implements DialectResolutionInfo {
public String getSQLKeywords() { public String getSQLKeywords() {
return ""; return "";
} }
@Override
public String toString() {
return getMajor() + "." + getMinor();
}
} }