anchor.diff:           statement/4]).
   
   -include_lib("eunit/include/eunit.hrl").
  +-include_lib("sqerl.hrl").
   
   -define(MAX_RETRIES, 5).
   
  
positive.code:             {error, Message}
      end;
  
  parse_error(pgsql, {error,                      % error from sqerl
                      {error,                     % error record marker from epgsql
                       error,                     % Severity
                       Code, Message, _Extra}}) ->
      case lists:keyfind(Code, 1, ?PGSQL_ERROR_CODES) of
          {_, ErrorType} ->
  
negative.code: %% Sqerl's configuration at runtime, while the 2-argument form takes the database type as a
  %% parameter directly.
  -spec parse_error(
          {term(), term()} |               %% MySQL error
          {error, {error, error, _, _, _}} %% PostgreSQL error
      ) -> sqerl_error().
  parse_error(Reason) ->
      {ok, DbType} = application:get_env(sqerl, db_type),
      parse_error(DbType, Reason).
  
  -spec parse_error(mysql | pgsql, {term(), term()}
                          | {error, {error, error, _, _, _}}) -> sqerl_error().
  parse_error(mysql, {Code, Message}) ->
      case lists:keyfind(Code, 1, ?MYSQL_ERROR_CODES) of
          {_, ErrorType} ->
  