Oracle异常问题——in表达式不能有null值

分类:计算机 | 数据库 | Oracle | 综合 1540
更新:2020-04-10 23:09:01
编辑

1 异常描述

在执行数据库操作时报如下错误:

 nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='__frch_listItem_11', mode=IN, javaType=class java.lang.Object, jdbcType=null, numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}. Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #10 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型

2 异常分析

sql in表达式集合中有的数据为null。