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 902f5ea commit 6e0d266Copy full SHA for 6e0d266
sqldev/src/test/java/org/utplsql/sqldev/test/AbstractJdbcTest.java
@@ -21,6 +21,7 @@
21
import java.util.List;
22
import java.util.Properties;
23
24
+import org.springframework.jdbc.BadSqlGrammarException;
25
import org.springframework.jdbc.core.JdbcTemplate;
26
import org.springframework.jdbc.datasource.SingleConnectionDataSource;
27
import org.utplsql.sqldev.exception.GenericRuntimeException;
@@ -73,4 +74,12 @@ public static List<String> getStatements(final String sqlplusScript) {
73
74
}
75
return stmts;
76
77
+
78
+ public static void executeAndIgnore(JdbcTemplate template, String sql) {
79
+ try {
80
+ template.execute(sql);
81
+ } catch (BadSqlGrammarException e) {
82
+ // ignore
83
+ }
84
85
0 commit comments