You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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():
Method `wxSQLite3Database::ConvertJournalMode(const wxString& mode)` checked the journal mode string against upper case values. This failed, because `PRAGMA journal_mode` returns the journal mode in lower case. The comparison is now done case insensitive.
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
The text was updated successfully, but these errors were encountered: