Skip to content

Commit

Permalink
bf_attach only when not attached
Browse files Browse the repository at this point in the history
  • Loading branch information
grammaright committed Dec 24, 2024
1 parent de63af3 commit 49d600c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/array_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ void ArrayExtension::Load(DuckDB &db) {
"initialized.\n");
}

BF_Attach();
// When debuging: BF_Init() and Attached() will be called in
// sqlite3_api_wrapper.cpp
// When using M2: this will be called
if (_mspace_data == nullptr) {
BF_Attach();
}

std::cerr << "define funtions" << std::endl;
auto table_function = ArrayExtension::GetReadArrayFunction();
Expand Down

0 comments on commit 49d600c

Please sign in to comment.