clickhouse-odbc icon indicating copy to clipboard operation
clickhouse-odbc copied to clipboard

Support for UInt128, UInt256 (and others)

Open a-dot opened this issue 3 years ago • 0 comments

Hi, I'm trying to read a Number field from an Oracle database that contains an IPv6 address that was converted to its Decimal representation. Support for UInt128 (and 256) are missing from odbc-driver so I tried to create my field in my ClickHouse table as Decimal256(0) but that didn't work. I also tried to making this field a String and try to convert it as part of my query but that didn't work either, the number was getting truncated. Would an array of UInt64[2] work?

Can you think of a clever way to read that field in, short of implementing support for UInt128? Thanks!

a-dot avatar Jan 17 '23 19:01 a-dot