I have the following query:
select id from table1 where some_func(?) = 1;
where some_func is a function which allows its argum
some_func
From my experience setCharacterStream() is much more reliable than setClob()
String s = (String) obj; StringReader stringReader = new StringReader(s); stmt.setCharacterStream(i + 1, stringReader , s.length());
and it works without the need to create CLOB objects