Call .setClob for clob wrapped Strings in QueryMapper

This commit is contained in:
Travis Burtrum 2017-05-29 18:24:48 -04:00
parent 2f19f2ad46
commit 12fc0edbd4

View File

@ -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