Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55c4d83

Browse files
committed
We don't need the java sanitization anymore
1 parent 41f0a47 commit 55c4d83

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/org/utplsql/api/outputBuffer/OutputBufferProvider.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ public static OutputBuffer getCompatibleOutputBuffer(Version databaseVersion, Re
4242

4343
private static boolean hasOutput( Reporter reporter, OracleConnection oraConn ) throws SQLException {
4444

45-
String reporterName = reporter.getTypeName();
46-
if ( !reporterName.matches("^[a-zA-Z0-9_]+$"))
47-
throw new IllegalArgumentException(String.format("Reporter-Name %s is not valid", reporterName));
48-
4945
String sql =
5046
"declare " +
5147
" l_result int;" +
@@ -62,7 +58,7 @@ private static boolean hasOutput( Reporter reporter, OracleConnection oraConn )
6258

6359
try ( CallableStatement stmt = oraConn.prepareCall(sql)) {
6460
stmt.setQueryTimeout(3);
65-
stmt.setString(1, reporterName);
61+
stmt.setString(1, reporter.getTypeName());
6662
stmt.registerOutParameter(2, OracleTypes.INTEGER);
6763

6864
stmt.execute();

0 commit comments

Comments
 (0)