Skip to content

Commit 5f130fa

Browse files
committed
We actually *want* an SQL issue to raise an exception
1 parent ef68fc3 commit 5f130fa

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
@@ -42,7 +42,6 @@ public static OutputBuffer getCompatibleOutputBuffer(Version databaseVersion, Re
4242

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

45-
System.out.println("Checking Reporter hasOutput: " + reporter.getTypeName());
4645
String sql =
4746
"declare " +
4847
" l_result int;" +
@@ -53,7 +52,6 @@ private static boolean hasOutput( Reporter reporter, OracleConnection oraConn )
5352
" :x := case ' || DBMS_ASSERT.SQL_OBJECT_NAME( ? ) || '() is of (ut_output_reporter_base) when true then 1 else 0 end;" +
5453
" end;'" +
5554
" using out l_result;" +
56-
" exception when others then null;" +
5755
" end;" +
5856
" ? := l_result;" +
5957
"end;";
@@ -66,7 +64,7 @@ private static boolean hasOutput( Reporter reporter, OracleConnection oraConn )
6664
stmt.execute();
6765
int result = stmt.getInt(2);
6866

69-
System.out.println("Output-check: " + result);
67+
System.out.println("Output-check for " + reporter.getTypeName() + ": " + result);
7068
return result == 1;
7169
}
7270
}

0 commit comments

Comments
 (0)