I use a simple 1-table SQLite database for some data. I retrieve the relevant records by various SQL statements, for example
select * from mydb where C1 = "rc" order by P, Do, W1, W2, W3
All these work fine. But the following query will not find any record:
select * from mydb where Do = "h" order by P, Do, W1, W2, W3
In spite of the fact that I have got a dozen relevant records in my db.
Now when I manually edit any field "Do" in one of the relevant records, replacing the "h" by another letter, e.g. "i" (without the quotes of course), then the above query, with "i" instead of "h", will find that record, and when I manually change back the "i" to an "h" in the field and in the query, the query will again find nothing.
I have tried the above sql query in several sqlite frontends, with identical results: with other letters, the query finds and displays the relevant records, with "h" instead, for the same records, nothing.
This sounds like a joke, but it isn't. I do not have the slightest idea what this may cause. Any idea, anyone?
EDIT: Thinking about it, %H is "hour" in SQLite, and HH:MM is hour/minutes, but how could these codes affect a single "h"? A bug in SQLite? So I also have tried now with a single "d" (for possible "day") and a single "m" (for possible "minute"), but they work fine, i.e. the records are retrieved... while those with "h" in the same cell instead are not...