From 1e7e2a414486e7b88ab0977128f0e7965af3ad2e Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Fri, 5 Apr 2024 15:26:40 +0200 Subject: [PATCH] Avoid implicit Load, use LoadInternal pattern --- src/quack_extension.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quack_extension.cpp b/src/quack_extension.cpp index 4fdad78..2cbf301 100644 --- a/src/quack_extension.cpp +++ b/src/quack_extension.cpp @@ -56,8 +56,8 @@ std::string QuackExtension::Name() { extern "C" { DUCKDB_EXTENSION_API void quack_init(duckdb::DatabaseInstance &db) { - duckdb::DuckDB db_wrapper(db); - db_wrapper.LoadExtension(); + duckdb::DuckDB db_wrapper(db); + duckdb::LoadInternal(*db_wrapper.instance); } DUCKDB_EXTENSION_API const char *quack_version() {