anchor.diff:  -behaviour(sqerl_client).
   
   -include_lib("epgsql/include/pgsql.hrl").
  --include_lib("eunit/include/eunit.hrl").
  +
  +-define(COMMIT(Cn), pgsql:squery(Cn, "COMMIT")).
  +-define(ROLLBACK(Cn), pgsql:squery(Cn, "COMMIT")).
   
   %% API
   -export([start_link/1]).
  
positive.code:         try
              case pgsql:execute(Cn, Stmt) of
                  {ok, Count} ->
                      {{ok, Count}, State};
                  Result ->
                      {{error, Result}, State}
              end
          catch
              _:X -> ?debugVal(X), ?debugVal(erlang:get_stacktrace())
          end,
      pgsql:squery(Cn, "COMMIT"),
      Rv.
  
  init(Config) ->
  
negative.code:             {error, {syntax, {Msg, Position}}};
          Error ->
              %% TODO: Discover what errors can flow out of this, and write tests.
              {error, Error}
      end.
  
  