-
Bug
-
Resolution: Done
-
Critical
-
1.6.0.Beta1
-
None
-
False
-
False
-
Undefined
-
Db2Connector is unable to start due to two issues
- Configuration passed to connection is not a subset of "database." properties
- SQL Command used to test connection is invalid
Db2ConnectorConfig connectorConfig = new Db2ConnectorConfig(config); try (Db2Connection connection = new Db2Connection(connectorConfig.getConfig())) { try { connection.connect(); connection.execute("SELECT version()"); LOGGER.info("Successfully tested connection for {} with user '{}'", connection.connectionString(), connection.username()); } catch (SQLException e) { LOGGER.error("Failed testing connection for {} with user '{}'", connection.connectionString(), connection.username(), e); hostnameValue.addErrorMessage("Unable to connect: " + e.getMessage()); } }
- is caused by
-
DBZ-3118 Config validation for Db2
- Closed