[jOOQ/jOOQ#14833] Version support check shouldn't log error message for MockConnection

This commit is contained in:
Lukas Eder 2023-03-22 13:37:23 +01:00
parent a908ff7532
commit 7308d08ed7

View File

@ -645,6 +645,11 @@ class DefaultExecuteContext implements ExecuteContext {
logVersionSupport.info("Version", "Database version is supported by dialect " + dialect() + ": " + productVersion);
}
// [#14833] There are various reasons why the version can't be read, which we can ignore
catch (SQLException e) {
logVersionSupport.info("Version", "Database version cannot be read: " + e.getMessage());
}
// [#14791] Could also be NumberFormatException when reading non-standard version numbers
catch (Exception e) {
logVersionSupport.error("Error reading database version", e);