You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/12/11 09:57:53 UTC

[GitHub] [shardingsphere] guid-git commented on issue #8577: sharding-sphere3.0.0+mybatisplus2.1.4+mysql, batchInsert error, help me !!!

guid-git commented on issue #8577:
URL: https://github.com/apache/shardingsphere/issues/8577#issuecomment-743097077


   private int[] accumulate(final List<int[]> results) {
           int[] result = new int[batchCount];
           int count = 0;
           for (BatchRouteUnit each : routeUnits) {
               for (Entry<Integer, Integer> entry : each.getJdbcAndActualAddBatchCallTimesMap().entrySet()) {
                 ###   **int value = null == results.get(count) ? 0 : results.get(count)[entry.getValue()];**
                   if (DatabaseType.Oracle == getDatabaseType()) {
                       result[entry.getKey()] = value;
                   } else {
                       result[entry.getKey()] += value;
                   }
               }
               count++;
           }
           return result;
       }


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org