Skip to content

Commit

Permalink
chore(c/integration/duckdb): update to DuckDB 0.9.0
Browse files Browse the repository at this point in the history
Fixes apache#973.
  • Loading branch information
lidavidm committed Sep 29, 2023
1 parent 7a7a5f6 commit 8254433
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion c/integration/duckdb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include(FetchContent)
if(ADBC_BUILD_TESTS)
fetchcontent_declare(duckdb
GIT_REPOSITORY https://github.com/duckdb/duckdb.git
GIT_TAG e8e4cea5ec9d1a84c1f516d0f0674f8785a3e786 # v0.8.0
GIT_TAG 0d84ccf478578278b2d1168675b8b93c60f78a5e # v0.9.0
GIT_PROGRESS TRUE
USES_TERMINAL_DOWNLOAD TRUE)
set(BUILD_JEMALLOC_EXTENSION
Expand Down
11 changes: 6 additions & 5 deletions c/integration/duckdb/duckdb_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@

#include <adbc.h>
#include <driver_manager/adbc_driver_manager.h>
#include <duckdb/common/adbc/adbc-init.hpp>

#include "validation/adbc_validation.h"
#include "validation/adbc_validation_util.h"

// Convert between our definitions and DuckDB's
// Convert between our definitions and DuckDB's. Cannot include DuckDB's
// header because they redefine some ADBC symbols differently, so forward
// declare it ourselves.
AdbcStatusCode duckdb_adbc_init(int version, void* driver, struct AdbcError* error);

AdbcStatusCode DuckDbDriverInitFunc(int version, void* driver, struct AdbcError* error) {
return duckdb_adbc_init(static_cast<size_t>(version),
reinterpret_cast<duckdb_adbc::AdbcDriver*>(driver),
reinterpret_cast<duckdb_adbc::AdbcError*>(error));
return duckdb_adbc_init(version, driver, error);
}

class DuckDbQuirks : public adbc_validation::DriverQuirks {
Expand Down

0 comments on commit 8254433

Please sign in to comment.