Skip to content

Commit

Permalink
mc
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Mühleisen committed Jan 5, 2024
1 parent 242e5e8 commit 6e862e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ async function test() {
return;
}
}
// can clean this stuff up already
duckdb_native.duckdb_destroy_pending(pending_result);
duckdb_native.duckdb_destroy_prepare(prepared_statement);

if (!duckdb_native.duckdb_result_is_streaming(result)) {
// TODO: this should also working for streaming result sets!
Expand Down Expand Up @@ -135,9 +138,8 @@ async function test() {
}

// clean up again
duckdb_native.duckdb_destroy_pending(pending_result);
duckdb_native.duckdb_destroy_result(result);
duckdb_native.duckdb_destroy_prepare(prepared_statement);

duckdb_native.duckdb_disconnect(con);
duckdb_native.duckdb_close(db);
duckdb_native.duckdb_destroy_config(config);
Expand Down

0 comments on commit 6e862e5

Please sign in to comment.