Commit 2c89761b authored by Simon Morlat's avatar Simon Morlat
Browse files

Use secure_delete pragma only for sqlite3. It is not supported by Mysql.

parent 543ccc4c
......@@ -1803,8 +1803,10 @@ void MainDb::init () {
/* Enable secure delete - so that erased chat messages are really erased and not just marked as unused.
* See https://sqlite.org/pragma.html#pragma_secure_delete
* This setting is global for the database.
* It is enabled only for sqlite3 backend, which is the one used for liblinphone clients.
* The mysql backend (used server-side) doesn't support this PRAGMA.
*/
*session << string("PRAGMA secure_delete = ON");
if (backend == Sqlite3) *session << string("PRAGMA secure_delete = ON");
*session <<
"CREATE TABLE IF NOT EXISTS sip_address ("
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment