Skip to content
Commit 42397246 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Workaround a weird misbehaviour of SQLite when checking tag RID

For some reason "WHERE remoteId = 'rid-with-hyphen'" would not match
any rows even if such row exists in TagRemoteIdResourceRelation. This
only seems to affect a specific case in Zanshin's akonadistoragetest.
I couldn't reproduce this on a clean SQLite database nor could  I
reproduce it with manually created entries in the test's instance DB,
but I could confirm that with data created by the test itself.

For now the problem is worked-around by using "LIKE" instead of "=",
which matches the strings correctly.
parent ad6695fa
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