Skip to content

Commit 1a1732a

Browse files
committed
Add valid_sql_name to sanitization
1 parent 85014b8 commit 1a1732a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private static boolean hasOutput( Reporter reporter, OracleConnection oraConn )
5353
" begin " +
5454
" execute immediate '" +
5555
" begin " +
56-
" :x := case ' || ? || '() is of (ut_output_reporter_base) when true then 1 else 0 end;" +
56+
" :x := case ' || dbms_assert.valid_sql_name( ? ) || '() is of (ut_output_reporter_base) when true then 1 else 0 end;" +
5757
" end;'" +
5858
" using out l_result;" +
5959
" end;" +
@@ -67,8 +67,6 @@ private static boolean hasOutput( Reporter reporter, OracleConnection oraConn )
6767

6868
stmt.execute();
6969
int result = stmt.getInt(2);
70-
71-
System.out.println("Output-check for " + reporterName + ": " + result);
7270
return result == 1;
7371
}
7472
}

0 commit comments

Comments
 (0)