From a0a5ee70f1e5021df606a01a212144f4fe955daa Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Jan 2021 21:57:04 +0300 Subject: fixes #2698 (Add current db format (mdbx, sqlite) to version info report) --- plugins/Dbx_sqlite/src/dbintf.h | 2 ++ plugins/Dbx_sqlite/src/main.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'plugins/Dbx_sqlite/src') diff --git a/plugins/Dbx_sqlite/src/dbintf.h b/plugins/Dbx_sqlite/src/dbintf.h index 123f950e72..98b8765195 100755 --- a/plugins/Dbx_sqlite/src/dbintf.h +++ b/plugins/Dbx_sqlite/src/dbintf.h @@ -130,6 +130,8 @@ public: STDMETHODIMP_(BOOL) Compact() override; STDMETHODIMP_(BOOL) Backup(LPCWSTR) override; + STDMETHODIMP_(DATABASELINK*) GetDriver() override; + STDMETHODIMP_(DB::EventCursor*) EventCursor(MCONTACT hContact, MEVENT hDbEvent) override; STDMETHODIMP_(DB::EventCursor*) EventCursorRev(MCONTACT hContact, MEVENT hDbEvent) override; }; diff --git a/plugins/Dbx_sqlite/src/main.cpp b/plugins/Dbx_sqlite/src/main.cpp index 8b2c69cfb6..e3fe8b51d9 100644 --- a/plugins/Dbx_sqlite/src/main.cpp +++ b/plugins/Dbx_sqlite/src/main.cpp @@ -37,6 +37,11 @@ static DATABASELINK dblink = &CDbxSQLite::Load, }; +STDMETHODIMP_(DATABASELINK *) CDbxSQLite::GetDriver() +{ + return &dblink; +} + int CMPlugin::Load() { RegisterDatabasePlugin(&dblink); -- cgit v1.2.3