code: private void internalBatchExecution(int size) throws SQLException {
  
      executeQueryPrologue(true);
      results = new Results(this,
          0,
          true,
          size,
          false,
          resultSetScrollType,
          resultSetConcurrency,
          Statement.RETURN_GENERATED_KEYS,
          protocol.getAutoIncrementIncrement());
      protocol.executeBatchStmt(protocol.isMasterConnection(), results, batchQueries);
      results.commandEnd();
    }
docs: Internal batch execution.
  
  @param size expected result-set size
  @throws SQLException throw exception if batch error occur