diff options
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbintf.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp index 1ae2834f1e..d8b6d83712 100755 --- a/plugins/Dbx_sqlite/src/dbintf.cpp +++ b/plugins/Dbx_sqlite/src/dbintf.cpp @@ -186,8 +186,11 @@ BOOL CDbxSQLite::Backup(LPCWSTR profile) BOOL CDbxSQLite::Compact() { - sqlite3_exec(m_db, "pragma optimize;", nullptr, nullptr, nullptr); - sqlite3_exec(m_db, "vacuum;", nullptr, nullptr, nullptr); + int rc = sqlite3_exec(m_db, "pragma optimize;", nullptr, nullptr, nullptr); + logError(rc, __FILE__, __LINE__); + + rc = sqlite3_exec(m_db, "vacuum;", nullptr, nullptr, nullptr); + logError(rc, __FILE__, __LINE__); return 0; } |