Skip to content

Commit

Permalink
Version up 0.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sofakingworld committed Nov 14, 2021
1 parent 9592d1d commit fa7cb82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Pillar.MixProject do
use Mix.Project

@source_url "https://github.com/balance-platform/pillar"
@version "0.24.0"
@version "0.25.0"

def project do
[
Expand Down
3 changes: 2 additions & 1 deletion test/pillar/type_convert/to_clickhouse_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ defmodule Pillar.TypeConvert.ToClickhouseTest do
end

test "IPv6" do
assert ToClickhouse.convert({8193, 3512, 0, 0, 0, 35374, 880, 29492}) == "'2001:db8::8a2e:370:7334'"
assert ToClickhouse.convert({8193, 3512, 0, 0, 0, 35374, 880, 29492}) ==
"'2001:db8::8a2e:370:7334'"
end
end
end
8 changes: 4 additions & 4 deletions test/pillar_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,11 @@ defmodule PillarTest do
sql =
"SELECT toIPv4('1.1.1.1') as ip4, toIPv6('2001:db8::8a2e:370:7334') as ip6, toIPv4('2.2.2.2') == toIPv4({ip}) as matches"

assert {:ok, [%{"ip4" => "1.1.1.1", "ip6" => "2001:db8::8a2e:370:7334", "matches" => true}]} =
Pillar.query(conn, sql, %{ip: {2, 2, 2, 2}})
assert {:ok, [%{"ip4" => "1.1.1.1", "ip6" => "2001:db8::8a2e:370:7334", "matches" => 1}]} =
Pillar.select(conn, sql, %{ip: {2, 2, 2, 2}})
end
end
describe "#insert_to_table" do

describe "#insert_to_table" do
test "bad request with unexistable fields", %{conn: conn} do
table_name = "to_table_inserts_with_fail_expected#{@timestamp}"

Expand Down

0 comments on commit fa7cb82

Please sign in to comment.