Currently all parameterized queries (schema less or dynamic) will default to either Int64 type or UInt64 Type and does not support going beyond the UInt64 boundary.
It would be nice to support this for usage of ClickHouse that has columns using Int128, UInt128, Int256, & UInt256
This support could be easily added in connection.ex. See below:
Solution
# connection.ex:1097
defp param_type(i) when is_integer(i) and i > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF, do: "UInt256"
defp param_type(i) when is_integer(i) and i > 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF, do: "Int256"
defp param_type(i) when is_integer(i) and i > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF, do: "UInt128"
defp param_type(i) when is_integer(i) and i > 0xFFFFFFFFFFFFFFFF, do: "Int128"
defp param_type(i) when is_integer(i) and i > 0x7FFFFFFFFFFFFFFF, do: "UInt64"
defp param_type(i) when is_integer(i), do: "Int64"
Problem Description
Currently all parameterized queries (schema less or dynamic) will default to either Int64 type or UInt64 Type and does not support going beyond the UInt64 boundary.
It would be nice to support this for usage of ClickHouse that has columns using Int128, UInt128, Int256, & UInt256
This support could be easily added in connection.ex. See below:
Solution
Test