anchor.diff:      ok = pgsql:bind(Cn, Stmt, NArgs),
       %% Note: we might get partial results here for big selects!
       Rv =
  -        try 
  +        try
               case pgsql:execute(Cn, Stmt) of
  -                {ok, Count} -> 
  +                {ok, Count} ->
                       {{ok, Count}, State};
                   Result ->
                       {{error, Result}, State}
               end
  -        catch 
  +        catch
               _:X -> ?debugVal(X), ?debugVal(erlang:get_stacktrace())
           end,
       pgsql:squery(Cn, "COMMIT"),
  
positive.code:          exec_prepared_statement/3,
           exec_prepared_select/3]).
  
  -record(state, 
          {cn,
           statements = dict:new() :: dict(),
           ctrans :: dict() | undefined }).
  
  -record(prepared_statement, 
          {name :: string(),
           input_types  :: any(),
           output_fields :: any(),
  
negative.code:     {db, Db} = lists:keyfind(db, 1, Config),
      {prepared_statement_source, PreparedStatementFile} = lists:keyfind(prepared_statement_source, 1, Config),
      Opts = [{database, Db}, {port, Port}],
      CTrans =
          case lists:keyfind(column_transforms, 1, Config) of
              {column_transforms, CT} -> CT;
              false -> undefined
  