mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-12-21 23:08:52 -05:00
Call .setClob for clob wrapped Strings in QueryMapper
This commit is contained in:
parent
2f19f2ad46
commit
12fc0edbd4
@ -136,7 +136,7 @@ public class QueryMapper implements Closeable {
|
||||
else if (o instanceof Reader)
|
||||
ps.setClob(index, (Reader) o);
|
||||
else if (o instanceof ClobString)
|
||||
ps.setObject(index, ((ClobString) o).s == null ? null : ((ClobString) o).s);
|
||||
ps.setClob(index, ((ClobString) o).s == null ? null : new StringReader(((ClobString) o).s));
|
||||
else if (o instanceof Clob)
|
||||
ps.setClob(index, (Clob) o);
|
||||
// BLOB support
|
||||
|
Loading…
Reference in New Issue
Block a user