anchor.diff:          {ok, NewSql, NewSortFun}
       catch
           _:Reason ->
  -            imem_meta:log_to_db(error,?MODULE,handle_call,[{reason,Reason},{filter_spec,FilterSpec},{sort_spec,SortSpec}],"filter_and_sort error"),
  +            imem_meta:log_to_db(error,?MODULE,handle_call,[{reason,Reason},{filter_spec,FilterSpec},{sort_spec,SortSpec},{cols,Cols}],"filter_and_sort error"),
               {error,Reason}
       end,
       % ?Log("replace_sort result ~p~n", [Reply]),
  
positive.code:             ?assertEqual(ok, close(SKey, SR7))
          end,
  
          SR8 = exec(SKey,query8, 100, IsSec, "select col1, col2 from def where col1 < '4' order by col2 desc;"),
          ?Log("SortSpec8 ~p~n", [SR8#stmtResult.sortSpec]),
          ?Log("StmtCols8 ~p~n", [SR8#stmtResult.stmtCols]),
          ?Log("SortSpec8 ~p~n", [SR8#stmtResult.sortSpec]),
  
negative.code:         , update_cursor_prepare/4   %% stateful creation of update plan (stored in state)
          , update_cursor_execute/4   %% stateful execution of update plan (fetch aborted first)
          , filter_and_sort/5         %% apply FilterSpec and SortSpec and return new SQL and SortFun
          , filter_and_sort/6         %% apply FilterSpec and SortSpec and return new SQL and SortFun
          , fetch_recs/5              %% simulation of synchronous fetch
          , fetch_recs_sort/5         %% simulation of synchronous fetch followed by a lists:sort
          , fetch_recs_async/4        %% async streaming fetch
  