Skip to content

Commit 0b6cc92

Browse files
committed
Enable extension loading for opened DBs
1 parent 358a775 commit 0b6cc92

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ConnectionState.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,7 @@ SQLiteOPResult genericSqliteOpenDb(string const dbName, string const docPath,
116116
.errorMessage = sqlite3_errmsg(*db)};
117117
}
118118

119+
sqlite3_enable_load_extension(*db, 1);
120+
119121
return SQLiteOPResult{.type = SQLiteOk, .rowsAffected = 0};
120122
}

0 commit comments

Comments
 (0)