You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
更新到最新2.0u8版本,但老框架问题还是没解决呀=、=
org.springframework.dao.DataRetrievalFailureException: The generated key is not of a supported numeric type: [I
at net.paoding.rose.jade.statement.UpdateQuerier.executeSingle(UpdateQuerier.java:108)
at net.paoding.rose.jade.statement.UpdateQuerier.execute(UpdateQuerier.java:61)
at net.paoding.rose.jade.statement.JdbcStatement.execute(JdbcStatement.java:156)
at net.paoding.rose.jade.statement.cached.CachedStatement.execute(CachedStatement.java:98)
at net.paoding.rose.jade.context.JadeInvocationHandler.invoke(JadeInvocationHandler.java:118)
at com.sun.proxy.$Proxy109.saveBatch233(Unknown Source)
RT,
尝试bugfix如下,不知道是否合理
修改execute方法:
@OverRide
public Object execute(SQLType sqlType, StatementRuntime... runtimes) {
switch (runtimes.length) {
case 0:
return 0;
case 1:
/**
* runtime长度为1,也可能调用的是batchUpdate,
* 根据jdbcTemplate接口定义,是不是可以认为返回值为数组的,即为batchUpdate操作
*/
if(returnType.isArray()){
return executeBatch(runtimes);
}
return executeSingle(runtimes[0], returnType);
default:
return executeBatch(runtimes);
}
}
The text was updated successfully, but these errors were encountered: