8000 Out-params of EXECUTE IMMEDIATE in 11.2 cannot be BOOLEAN · utPLSQL/utPLSQL-java-api@ef68fc3 · GitHub
[go: up one dir, main page]

Skip to content

Commit ef68fc3

Browse files
committed
Out-params of EXECUTE IMMEDIATE in 11.2 cannot be BOOLEAN
1 parent 01b9e97 commit ef68fc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,17 @@ private static boolean hasOutput( Reporter reporter, OracleConnection oraConn )
4545
System.out.println("Checking Reporter hasOutput: " + reporter.getTypeName());
4646
String sql =
4747
"declare " +
48-
" l_result boolean;" +
48+
" l_result int;" +
4949
"begin " +
5050
" begin " +
5151
" execute immediate '" +
5252
" begin " +
53-
" :x :=' || DBMS_ASSERT.SQL_OBJECT_NAME( ? ) || '() is of (ut_output_reporter_base);" +
53+
" :x := case ' || DBMS_ASSERT.SQL_OBJECT_NAME( ? ) || '() is of (ut_output_reporter_base) when true then 1 else 0 end;" +
5454
" end;'" +
5555
" using out l_result;" +
5656
" exception when others then null;" +
5757
" end;" +
58-
" ? := case l_result when true then 1 else 0 end;" +
58+
" ? := l_result;" +
5959
"end;";
6060

6161
try ( CallableStatement stmt = oraConn.prepareCall(sql)) {

0 commit comments

Comments
 (0)
0