Closed DanCory closed 11 months ago
I tested Microsoft.Data.SqlClient
, Microsoft.Data.Sqlite
, and Npgsql
and only Microsoft.Data.SqlClient
requires GetXXX
methods to match the underlying column type. The other two allow GetInt32 to work for other numeric types and vice versa (as long as data fits in the type)
I created a new issue to track this and will close this one.
I'm not sure if you will consider this a bug, but it certainly confused me. SUM() of an int16 field in DuckDB returns an int128. I tried to read it with GetInt64 and got the wrong results
should return
returns
Using GetValue is correct