Giorgi / DuckDB.NET

Bindings and ADO.NET Provider for DuckDB
https://duckdb.net
MIT License
339 stars 61 forks source link

Allow GetXXX/GetFieldValue methods to read data for other numeric types. #147

Closed Giorgi closed 7 months ago

Giorgi commented 9 months ago

Based on #142

DanCory commented 9 months ago

FYI you should probably get an InvalidCastException if the conversion is not supported. See https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbdatareader.getint64?view=netcore-3.1#system-data-common-dbdatareader-getint64(system-int32)

Giorgi commented 8 months ago

GetFieldValue<T> should support this scenario too.

Giorgi commented 7 months ago

This is now implemented in develop.

Giorgi commented 7 months ago

This is now live on NuGet