anchor.diff:                     _ ->
                          [Result | Results]
                  end,
  +    Batch2 = case Batch of
  +                 [] -> [];
  +                 _ -> tl(Batch)
  +             end,
       State#state{types = [],
                   columns = [],
                   rows = [],
  -                results = Results2}.
  +                results = Results2,
  +                batch = Batch2}.
   
   add_row(State = #state{queue = Q, rows = Rows}, Data) ->
       Rows2 = case queue:get(Q) of
  
positive.code:                 columns = [],
                  rows = [],
                  results = [],
                  sync_required,
                  txstatus}).
  
  
negative.code:                  bind ->
                       finish(State, ok);
                   execute_batch ->
                       Batch =
                           case State#state.batch of
                               [] -> 
                                   {_, {_, B}} = queue:get(State#state.queue),
                                   B;
                               B -> B
                           end,
                       State#state{batch = Batch}
               end,
      {noreply, State2};
  
  