We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9956190 commit 75d5172Copy full SHA for 75d5172
database-commons/src/main/java/io/cdap/plugin/db/batch/source/AbstractDBSource.java
@@ -158,7 +158,7 @@ private Schema loadSchemaFromDB(Class<? extends Driver> driverClass)
158
return loadSchemaFromDB(connection, sourceConfig.importQuery);
159
160
} catch (SQLException e) {
161
- LOG.error("SQLException while performing getSchema", e);
+ // wrap exception to ensure SQLException-child instances not exposed to contexts without jdbc driver in classpath
162
throw new SQLException(e.getMessage(), e.getSQLState(), e.getErrorCode());
163
} finally {
164
driverCleanup.destroy();
0 commit comments