shardingsphere
shardingsphere copied to clipboard
CaseExpressionContext#simpleExpr may throw NullPointException (version: 4.1.0)(MYSQL)
项目依赖版本: mybatis-spring-boot-starter version 1.2.0 spring boot verson 1.4.3.RELEASE sharding-sphere version 4.1.0 mysql-connector-java verson 5.1.46
这个是我的项目sql:
update xxx_table
<trim prefix="set" suffixOverrides=",">
<trim prefix="column1= case" suffix="end," >
<foreach collection="list" item="item" index="index">
<if test="item.column1 != null">
when id = #{item.id} then #{item.column1}
</if>
</foreach>
else column1
</trim>
<trim prefix="column2 = case" suffix="end," >
<foreach collection="list" item="item" index="index">
<if test="item.column2 != null">
when id = #{item.id} then #{item.column2}
</if>
</foreach>
else column2
</trim>
</trim>
where
<foreach collection="list" item="item" open="( " separator=") or (" close=" )">
id = #{item.id}
</foreach>
当解析
what's the logic sql executed?
For English only, other languages will not accept.