mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2025-03-11 07:31:08 -04: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)
|
else if (o instanceof Reader)
|
||||||
ps.setClob(index, (Reader) o);
|
ps.setClob(index, (Reader) o);
|
||||||
else if (o instanceof ClobString)
|
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)
|
else if (o instanceof Clob)
|
||||||
ps.setClob(index, (Clob) o);
|
ps.setClob(index, (Clob) o);
|
||||||
// BLOB support
|
// BLOB support
|
||||||
|
Loading…
x
Reference in New Issue
Block a user