ClickHouse.Client icon indicating copy to clipboard operation
ClickHouse.Client copied to clipboard

Support DateOnly parameters

Open tkirill opened this issue 2 years ago • 2 comments

Hi!

I'm trying to filter by Date column. Currently I need to manually specify Date type:

new ClickHouseDbParameter { ParameterName = paramName, ClickHouseType = "Date", Value = value };

If I don't specify the type manually then TypeConverter choose DateTime type for DateTime and DateTimeOffset values.

What do you think about supporting DateOnly values and automatically choose Date type for them?

tkirill avatar Mar 07 '23 08:03 tkirill

Hi. Thank you for your report. This is a trivial change, added for next release

DarkWanderer avatar Mar 07 '23 13:03 DarkWanderer

Thank you! Lookng forward for the new release :)

tkirill avatar Mar 13 '23 05:03 tkirill