Skip to content

Commit

Permalink
Update DuckDB up to v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexR2D2 committed Jun 16, 2023
1 parent b2c05bd commit c8dfaba
Show file tree
Hide file tree
Showing 9 changed files with 190,652 additions and 151,319 deletions.
8 changes: 4 additions & 4 deletions c_src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ namespace {
}

bool set_default_null_order(ErlNifEnv* env, ERL_NIF_TERM term, duckdb::DBConfig& sink) {
if (nif::is_atom(env, term, "nulls_firs")) {
sink.options.default_null_order = duckdb::OrderByNullType::NULLS_FIRST;
if (nif::is_atom(env, term, "nulls_first")) {
sink.options.default_null_order = duckdb::DefaultOrderByNullType::NULLS_FIRST;
return true;
}

if (nif::is_atom(env, term, "nulls_last")) {
sink.options.default_null_order = duckdb::OrderByNullType::NULLS_LAST;
sink.options.default_null_order = duckdb::DefaultOrderByNullType::NULLS_LAST;
return true;
}

Expand Down Expand Up @@ -279,7 +279,7 @@ namespace {
return true;

if (nif::is_atom(env, term, "erlang")) {
sink.allocator = duckdb::make_unique<duckdb::Allocator>(nif::eddb_allocate, nif::eddb_free, nif::eddb_reallocate, nullptr);
sink.allocator = duckdb::make_uniq<duckdb::Allocator>(nif::eddb_allocate, nif::eddb_free, nif::eddb_reallocate, nullptr);
sink.default_allocator = duckdb::make_shared<duckdb::Allocator>(nif::eddb_allocate, nif::eddb_free, nif::eddb_reallocate, nullptr);
return true;
}
Expand Down
Loading

0 comments on commit c8dfaba

Please sign in to comment.