ClickHouseClient
ClickHouseClient copied to clipboard
Add support for Decimal256
Decimal256(S) is an alias for Decimal(76, S). Currently all values of type Decimal(P, S) are converted to decimal and there is no intention to change it.
But Decimal256 and Decimal128 can store values which are bigger than the max value of decimal. It's not clear which .NET type could be used for big decimal values. Maybe it should be some custom type.
Usually providers implement custom type when there is no suitable .net type available, e.g.
-
SqlDecimalfor sql server/ sql ce -
DB2DecimalandDB2DecimalFloatfor DB2 -
FbDecFloatin Firebird -
IfxDecimalfor Informix -
MySqlDecimalfor MySql -
OracleDecimalfor Oracle
as alternate/additional option it makes sense to support string type for decimals