这是我的插入SQL;
insert into icloud_user_picture (
folder_id,
user_id,
picture_name,
picture_path,
picture_size,
picture_time,
picture_status
)
values
<foreach collection="list" item="item" index="index" separator=",">
(#{item.folderId},#{item.userId},#{item.pictureName},
#{item.picturePath},#{item.pictureSize},#{item.pictureTime},
#{item.pictureStatus}
)
</foreach>
报错信息:
uncategorized SQLException; SQL state [null]; error code [0]; io.seata.common.exception.ShouldNeverHappenException; nested exception is java.sql.SQLException: io.seata.common.exception.ShouldNeverHappenException] with root cause
io.seata.common.exception.ShouldNeverHappenException: null
at io.seata.rm.datasource.exec.mysql.MySQLInsertExecutor.getPkValuesByAuto(MySQLInsertExecutor.java:121)
at io.seata.rm.datasource.exec.mysql.MySQLInsertExecutor.getPkValues(MySQLInsertExecutor.java:81)
我的主键是用的美团leaf分布式ID,使用shardingsphere4.1.1自动生成的;