Closed siganakis closed 2 years ago
I should also note the executing the queries above in the CLI works as expected:
λ duckdb "db.duckdb"
v0.3.1 88aa81c6b
Enter ".help" for usage hints.
D DROP TABLE IF EXISTS test;
D CREATE TABLE test (dec DECIMAL(19,14) NULL, value FLOAT NULL);
D INSERT INTO test (dec, value) SELECT NULL, 10;
D SELECT * FROM test;
┌─────┬───────┐
│ dec │ value │
├─────┼───────┤
│ │ 10.0 │
└─────┴───────┘
Filed a bug: https://github.com/duckdb/duckdb/issues/2858
This is now implemented in release 0.4.0
Description
When querying tables with a decimal data type, duckdb.net returns an error "DuckDBQuery failed". This occurs where the decimal values in the table are NULL or has a value.
Expected result
The query should return the decimal values stored in the table.
Minimal example:
If you change the column type of "dec" above to INT, then the code works properly.