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/Import/src/dbrw/dbintf.h | 2 ++ plugins/Import/src/dbrw/dbrw.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'plugins/Import/src/dbrw') diff --git a/plugins/Import/src/dbrw/dbintf.h b/plugins/Import/src/dbrw/dbintf.h index 3c5fbef3c5..481ff173de 100644 --- a/plugins/Import/src/dbrw/dbintf.h +++ b/plugins/Import/src/dbrw/dbintf.h @@ -154,4 +154,6 @@ public: STDMETHODIMP_(BOOL) MetaSplitHistory(DBCachedContact *ccMeta, DBCachedContact *ccSub) override; STDMETHODIMP_(MEVENT) GetEventById(LPCSTR szModule, LPCSTR szId) override; + + STDMETHODIMP_(DATABASELINK *) GetDriver(); }; diff --git a/plugins/Import/src/dbrw/dbrw.cpp b/plugins/Import/src/dbrw/dbrw.cpp index a43f8da910..0779374d62 100644 --- a/plugins/Import/src/dbrw/dbrw.cpp +++ b/plugins/Import/src/dbrw/dbrw.cpp @@ -94,6 +94,11 @@ static DATABASELINK dblink = dbrw_Load }; +STDMETHODIMP_(DATABASELINK *) CDbxSQLite::GetDriver() +{ + return &g_patternDbLink; +} + void RegisterDbrw() { RegisterDatabasePlugin(&dblink); -- cgit v1.2.3