Skip to content

Commit

Permalink
Avoid implicit Load, use LoadInternal pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Apr 5, 2024
1 parent 069cfc4 commit 1e7e2a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quack_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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::QuackExtension>();
duckdb::DuckDB db_wrapper(db);
duckdb::LoadInternal(*db_wrapper.instance);
}

DUCKDB_EXTENSION_API const char *quack_version() {
Expand Down

0 comments on commit 1e7e2a4

Please sign in to comment.