Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit bdb6925

Browse files
authored
Update esqlite reference and fix a broken test. (#57)
1 parent 417b399 commit bdb6925

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule Sqlitex.Mixfile do
2626
# Type `mix help deps` for more examples and options
2727
defp deps do
2828
[
29-
{:esqlite, "~> 0.2.0"},
29+
{:esqlite, "~> 0.2.3"},
3030
{:decimal, "~> 1.1"},
3131

3232
{:credo, "~> 0.4", only: :dev},

test/server/statement_cache_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ defmodule Sqlitex.Server.StatementCacheTest do
1111
assert %S{cached_stmts: %{}, db: _, limit: 3, lru: [], size: 0} = cache
1212

1313
{cache, stmt1a} = S.prepare(cache, "SELECT 42")
14-
assert %Stmt{column_names: [:"42"], column_types: [nil], statement: ""} = stmt1a
14+
assert %Stmt{column_names: [:"42"], column_types: [nil]} = stmt1a
1515

1616
{cache, stmt2a} = S.prepare(cache, "SELECT 43")
17-
assert %Stmt{column_names: [:"43"], column_types: [nil], statement: ""} = stmt2a
17+
assert %Stmt{column_names: [:"43"], column_types: [nil]} = stmt2a
1818

1919
{cache, stmt3} = S.prepare(cache, "SELECT 44")
20-
assert %Stmt{column_names: [:"44"], column_types: [nil], statement: ""} = stmt3
20+
assert %Stmt{column_names: [:"44"], column_types: [nil]} = stmt3
2121

2222
{cache, stmt1b} = S.prepare(cache, "SELECT 42")
2323
assert stmt1a == stmt1b # shouldn't have been purged
2424

2525
{cache, stmt4} = S.prepare(cache, "SELECT 353")
26-
assert %Stmt{column_names: [:"353"], column_types: [nil], statement: ""} = stmt4
26+
assert %Stmt{column_names: [:"353"], column_types: [nil]} = stmt4
2727

2828
{_cache, stmt2b} = S.prepare(cache, "SELECT 42")
2929
refute stmt2a == stmt2b # should have been purged

0 commit comments

Comments
 (0)