Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,11 @@ protected void executeSqlScript(JDBCResourceManager resourceManager, String reso
for (String d : ddls) {
if (!d.isBlank()) {
try {
resourceManager.runSQLUpdate(d);
if (d.toLowerCase().trim().startsWith("select")) {
resourceManager.runSQLQuery(d);
} else {
resourceManager.runSQLUpdate(d);
}
} catch (Exception e) {
LOG.error("Exception while executing DDL {}", d, e);
throw e;
Expand Down
Loading
Loading