Skip to content

Commit 579c903

Browse files
authored
Enable extension loading in read-only database (#5728)
1 parent 83dd1fd commit 579c903

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src_cpp/py_database.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ PyDatabase::PyDatabase(const std::string& databasePath, uint64_t bufferPoolSize,
5454
systemConfig.checkpointThreshold = static_cast<uint64_t>(checkpointThreshold);
5555
}
5656
database = std::make_unique<Database>(databasePath, systemConfig);
57-
kuzu::extension::ExtensionUtils::addTableFunc<kuzu::PandasScanFunction>(
58-
&kuzu::transaction::DUMMY_TRANSACTION, *database);
57+
kuzu::extension::ExtensionUtils::addTableFunc<kuzu::PandasScanFunction>(*database);
5958
storageDriver = std::make_unique<StorageDriver>(database.get());
6059
py::gil_scoped_acquire acquire;
6160
if (kuzu::importCache.get() == nullptr) {

0 commit comments

Comments
 (0)