Skip to content

Commit

Permalink
fix test for older ch?
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Feb 22, 2025
1 parent 7d76a6f commit 423d375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ch/connection_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ defmodule Ch.ConnectionTest do
test "json as string", %{conn: conn} do

Check failure on line 585 in test/ch/connection_test.exs

View workflow job for this annotation

GitHub Actions / test (1.17.3, 27.2.1, 24.12.2.29, UTC)

test types json as string (Ch.ConnectionTest)
# after v25 ClickHouse started rendering numbers in JSON as strings
[[version]] = Ch.query!(conn, "select version()").rows
numbers_as_strings? = version >= "25"
numbers_as_strings? = version >= "24.12"

[expected1, expected2] =
if numbers_as_strings? do
Expand Down

0 comments on commit 423d375

Please sign in to comment.