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
@Override
public int executeUpdate() throws SQLException {
hasExecuted = true;
return new PreparedStatementExecutor(getShardingConnection().getShardingContext().getExecutorEngine(), getRoutedPreparedStatements()).executeUpdate();
}
在1.3.1版本中,因柔性事务要autoCommit,所以对于批量插入时,只能使用类似如下的方式提交:
在ShardingPreparedStatement#executeUpdate()中
其中
getRoutedPreparedStatements()
会因为hasExecuted = true;
反复使用相同的cachedRoutedPreparedStatements,导致插入的值都相同且在同一分片中The text was updated successfully, but these errors were encountered: