anchor.diff:       {<<"J">>,2.0}].
   
   basic_test() ->
  -    DbName = tmp_dbname(),
  -    create_testdb(DbName),
  -
       %% connect to bad database
       {error, ErrMsg} = efirebirdsql:connect(
           "localhost", os:getenv("ISC_USER", "sysdba"), os:getenv("ISC_PASSWORD", "masterkey"), "something_wrong_database", []),
       ?assertEqual(ErrMsg, <<"I/O error during 'open' operation for file 'something_wrong_database'\nError while trying to open file\nNo such file or directory">>),
   
  +    DbName = tmp_dbname(),
  +    create_testdb(DbName),
       {ok, C} = efirebirdsql:connect(
           "localhost", os:getenv("ISC_USER", "sysdba"), os:getenv("ISC_PASSWORD", "masterkey"), DbName, []),
   
  
positive.code:     {ok, ResultProcedure} = efirebirdsql:fetchone(C2),
      ?assertEqual(ResultProcedure,  [{<<"OUT1">>,4}, {<<"OUT2">>,<<"d">>}]),
  
      %% FB3
      ok = efirebirdsql:execute(C2, <<"select True AS C from rdb$relations">>),
      ?assertEqual({ok, [{<<"C">>, true}]}, efirebirdsql:fetchone(C2)),
      ok = efirebirdsql:execute(C2, <<"select False AS C from rdb$relations">>),
      ?assertEqual({ok, [{<<"C">>, true}]}, efirebirdsql:fetchone(C2)),
  
      ok = efirebirdsql:commit(C2),
      ok = efirebirdsql:close(C2),
  
      %% Fetch null value issue #6
      {ok, C3} = efirebirdsql:connect(
          "localhost", os:getenv("ISC_USER", "sysdba"), os:getenv("ISC_PASSWORD", "masterkey"), tmp_dbname(),
  
negative.code: 
  tmp_dbname() ->
      lists:flatten(io_lib:format("/tmp/~p.fdb", [erlang:system_time()])).
  
  get_major_version(Conn) ->
      ok = efirebirdsql:execute(Conn, <<"select cast(LEFT(rdb$get_context('SYSTEM', 'ENGINE_VERSION'), 1) as int) from rdb$database;">>),
      {ok, [{_, MajorVersion}]} = efirebirdsql:fetchone(Conn),
      MajorVersion.
  
  create_testdb(DbName) ->
      %% crete new database
  