summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-02-11 21:53:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-02-11 21:53:01 +0300
commitcc6110276ebe3eb1409f44fc67596581d28f33ef (patch)
tree59551edb6b9bb44cf0511385a8a3a88e5850a01c /plugins
parent5754b7c03e76d1a45b7daf1220127a4b4c82887c (diff)
fixes #2724 (Cannot import from sqlite to mdbx)
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/Dbx_sqlite/src/dbintf.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp
index f9ee454655..bb977059e7 100755
--- a/plugins/Dbx_sqlite/src/dbintf.cpp
+++ b/plugins/Dbx_sqlite/src/dbintf.cpp
@@ -106,9 +106,11 @@ MDatabaseCommon* CDbxSQLite::Load(const wchar_t *profile, int readonly)
{
sqlite3 *database = nullptr;
ptrA path(mir_utf8encodeW(profile));
- int flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_EXCLUSIVE;
+ int flags = SQLITE_OPEN_EXCLUSIVE;
if (readonly)
flags |= SQLITE_OPEN_READONLY;
+ else
+ flags |= SQLITE_OPEN_READWRITE;
int rc = sqlite3_open_v2(path, &database, flags, nullptr);
if (rc != SQLITE_OK) {