Skip to content

Commit

Permalink
Version up 0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sofakingworld committed Oct 27, 2021
1 parent a6c7e39 commit d49648b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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.23.3"
@version "0.24.0"

def project do
[
Expand Down
6 changes: 3 additions & 3 deletions test/pillar_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -272,18 +272,18 @@ defmodule PillarTest do

test "Decimal test", %{conn: conn} do
create_table_sql = """
CREATE TABLE IF NOT EXISTS decimal_table (field Decimal64(2)) ENGINE = Memory
CREATE TABLE IF NOT EXISTS decimal_table_#{@timestamp} (field Decimal64(2)) ENGINE = Memory
"""

insert_query_sql = """
INSERT INTO decimal_table VALUES (500000.05)
INSERT INTO decimal_table_#{@timestamp} VALUES (500000.05)
"""

assert {:ok, ""} = Pillar.query(conn, create_table_sql)
assert {:ok, ""} = Pillar.query(conn, insert_query_sql)

assert {:ok, [%{"field" => 500_000.05}]} =
Pillar.select(conn, "SELECT * FROM decimal_table LIMIT 1")
Pillar.select(conn, "SELECT * FROM decimal_table_#{@timestamp} LIMIT 1")
end

test "Float tests", %{conn: conn} do
Expand Down

0 comments on commit d49648b

Please sign in to comment.