StatementCreatorUtils populates NVARCHAR, LONGNVARCHAR, NCLOB via setString as well
Issue: SPR-11938
This commit is contained in:
parent
7a1f19b96c
commit
ec4e6e0b0e
|
@ -318,8 +318,9 @@ public abstract class StatementCreatorUtils {
|
||||||
else if (inValue instanceof SqlValue) {
|
else if (inValue instanceof SqlValue) {
|
||||||
((SqlValue) inValue).setValue(ps, paramIndex);
|
((SqlValue) inValue).setValue(ps, paramIndex);
|
||||||
}
|
}
|
||||||
else if (sqlType == Types.VARCHAR || sqlType == Types.LONGVARCHAR ||
|
else if (sqlType == Types.VARCHAR || sqlType == Types.NVARCHAR ||
|
||||||
(sqlType == Types.CLOB && isStringValue(inValue.getClass()))) {
|
sqlType == Types.LONGVARCHAR || sqlType == Types.LONGNVARCHAR ||
|
||||||
|
((sqlType == Types.CLOB || sqlType == Types.NCLOB) && isStringValue(inValue.getClass()))) {
|
||||||
ps.setString(paramIndex, inValue.toString());
|
ps.setString(paramIndex, inValue.toString());
|
||||||
}
|
}
|
||||||
else if (sqlType == Types.DECIMAL || sqlType == Types.NUMERIC) {
|
else if (sqlType == Types.DECIMAL || sqlType == Types.NUMERIC) {
|
||||||
|
|
Loading…
Reference in New Issue