Closed ludnic closed 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.
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.