freevryheid / duckdb

fortran bindings to duckdb c api
MIT License
9 stars 2 forks source link

fix chunk test #14

Closed ludnic closed 1 year ago

ludnic commented 1 year ago

I stumbled upon this fix almost by chance, not sure why this is. Reinitializing the result before calling the chunk_count function solves the issue.

There might still be some issue because the chunk_count seems to be 0 but at least the memory error is not there for me.

freevryheid commented 1 year ago

I believe I've solved the issue. The duckdb_result struct has a number of depreciated variables that weren't included in the fortran derived type bind. Adding these appears to have fixed the problem. Just a heads-up/stash-warning - major refactoring underway :) Propose we close this pull request.