I have found that calling wxSQLite3Database::SetJournalMode() always returns WXSQLITE_JOURNALMODE_DELETE (the default return value).
The reason is PRAGMA journal_mode is returning mode name as a lowercase string, but ConvertJournalMode(const wxString&...) called at the end of SetJournalMode() does case-sensitive comparisons against uppercase mode names, so they never match...
It is solved by just setting caseSensitve=false argument when calling mode.IsSameAs():
Hello.
I have found that calling
wxSQLite3Database::SetJournalMode()
always returnsWXSQLITE_JOURNALMODE_DELETE
(the default return value).The reason is
PRAGMA journal_mode
is returning mode name as a lowercase string, butConvertJournalMode(const wxString&...)
called at the end ofSetJournalMode()
does case-sensitive comparisons against uppercase mode names, so they never match...It is solved by just setting
caseSensitve=false
argument when callingmode.IsSameAs()
:Best regards