mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
Call VACUUM on close unconditionally.
This commit is contained in:
parent
742bfbafc1
commit
7b6505ffde
@ -536,6 +536,7 @@ void MainWindow::close_database()
|
||||
keys = NULL;
|
||||
crls = NULL;
|
||||
|
||||
XSqlQuery q("VACUUM");
|
||||
QSqlDatabase::database().close();
|
||||
pki_evp::passwd.cleanse();
|
||||
pki_evp::passwd = QByteArray();
|
||||
|
||||
@ -237,6 +237,7 @@ bool OpenDb::_openDatabase(const QString &connName, const QString &pass) const
|
||||
* dbType() could return "ODBC" but connect to MariaDB
|
||||
*/
|
||||
XSqlQuery q("SET SESSION SQL_MODE='ANSI'");
|
||||
q.exec("PRAGMA secure_delete = 'true'");
|
||||
return true;
|
||||
}
|
||||
XSqlQuery::clearTablePrefix();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user