We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e549fe commit 7ee3f0fCopy full SHA for 7ee3f0f
1 file changed
test/ecto/adapters/clickhouse/connection_test.exs
@@ -932,9 +932,12 @@ defmodule Ecto.Adapters.ClickHouse.ConnectionTest do
932
test "tagged column type" do
933
query = from s in Schema, select: type(s.x + 1, s.y)
934
assert all(query) == ~s[SELECT CAST(s0."x" + 1 AS UInt16) FROM "schema" AS s0]
935
+ end
936
937
+ @tag :time
938
+ test "tagged as time" do
939
query = from e in "events", select: type(e.count + 1, :time)
- assert all(query) == nil
940
+ assert all(query) == ~s[SELECT CAST(e0."count" + CAST(1 AS Time) AS Time) FROM "events" AS e0]
941
end
942
943
test "tagged unknown type" do
0 commit comments