Skip to content

Commit 7ee3f0f

Browse files
committed
tag time test
1 parent 2e549fe commit 7ee3f0f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/ecto/adapters/clickhouse/connection_test.exs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,9 +932,12 @@ defmodule Ecto.Adapters.ClickHouse.ConnectionTest do
932932
test "tagged column type" do
933933
query = from s in Schema, select: type(s.x + 1, s.y)
934934
assert all(query) == ~s[SELECT CAST(s0."x" + 1 AS UInt16) FROM "schema" AS s0]
935+
end
935936

937+
@tag :time
938+
test "tagged as time" do
936939
query = from e in "events", select: type(e.count + 1, :time)
937-
assert all(query) == nil
940+
assert all(query) == ~s[SELECT CAST(e0."count" + CAST(1 AS Time) AS Time) FROM "events" AS e0]
938941
end
939942

940943
test "tagged unknown type" do

0 commit comments

Comments
 (0)