diff --git a/lib/firebirdex/protocol.ex b/lib/firebirdex/protocol.ex index b33371f..8319cbd 100644 --- a/lib/firebirdex/protocol.ex +++ b/lib/firebirdex/protocol.ex @@ -17,7 +17,6 @@ defmodule Firebirdex.Protocol do database = to_charlist(opts[:database]) case :efirebirdsql_protocol.connect(hostname, username, password, database, opts) do {:ok, conn} -> - {:ok, conn} = :efirebirdsql_protocol.begin_transaction(false, conn) {:ok, %__MODULE__{conn: conn}} {:error, number, reason, _conn} -> {:error, %Firebirdex.Error{number: number, reason: reason}} diff --git a/mix.exs b/mix.exs index 7d27a73..d9bdaae 100644 --- a/mix.exs +++ b/mix.exs @@ -43,7 +43,7 @@ defmodule Firebirdex.Mixfile do [ {:db_connection, "~> 2.0"}, {:decimal, "~> 1.6"}, - {:efirebirdsql, "~> 0.5.8"}, + {:efirebirdsql, "~> 0.5.9"}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false} ] end diff --git a/mix.lock b/mix.lock index 70b4b66..0ad257f 100644 --- a/mix.lock +++ b/mix.lock @@ -3,7 +3,7 @@ "db_connection": {:hex, :db_connection, "2.0.2", "440c05518b0bdca0469dafaf45403597430448c1281def14ef9ccaa41833ea1e", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}], "hexpm"}, "decimal": {:hex, :decimal, "1.6.0", "bfd84d90ff966e1f5d4370bdd3943432d8f65f07d3bab48001aebd7030590dcc", [:mix], [], "hexpm"}, "earmark": {:hex, :earmark, "1.3.1", "73812f447f7a42358d3ba79283cfa3075a7580a3a2ed457616d6517ac3738cb9", [:mix], [], "hexpm"}, - "efirebirdsql": {:hex, :efirebirdsql, "0.5.8", "d71b2547a94c00c42be42ecacb9510fb6fd7d066065d67ec1e2c58b21d818166", [:rebar3], [], "hexpm"}, + "efirebirdsql": {:hex, :efirebirdsql, "0.5.9", "41f6df2b107c63162cf50f53f4e8cd17cc3ff8efe260892ea916445b2230aa05", [:rebar3], [], "hexpm"}, "ex_doc": {:hex, :ex_doc, "0.19.3", "3c7b0f02851f5fc13b040e8e925051452e41248f685e40250d7e40b07b9f8c10", [:mix], [{:earmark, "~> 1.2", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"}, "makeup": {:hex, :makeup, "0.8.0", "9cf32aea71c7fe0a4b2e9246c2c4978f9070257e5c9ce6d4a28ec450a839b55f", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"}, "makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"}, diff --git a/test/firebirdex_test.exs b/test/firebirdex_test.exs index 9f4e5ea..1ea4d67 100644 --- a/test/firebirdex_test.exs +++ b/test/firebirdex_test.exs @@ -56,7 +56,7 @@ defmodule FirebirdexTest do )", []) {:ok, %Firebirdex.Result{} = result} = Firebirdex.query(conn, "SELECT * from foo", []) - assert result.rows == [[]] + assert result.rows == [] end end