my SQL query in sqlite3 ends with an OR statement. It looks like this:
select (...) from T1, T2, .... Tn where (...) and ( (T5.v='s1' and T6.v='s2' and T7.v='s3') OR (T5.v='s4' and T6.v='s5' and T7.v='s6') )
the query returns no result.
However, each individual OR condition returns multiple rows (!)
where (...) and ( (T5.v='s1' and T6.v='s2' and T7.v='s3') )
and
where (...) and ( (T5.v='s4' and T6.v='s5' and T7.v='s6') )
Is this a bug in sqlite3 or is it me?
$ sqlite3 -version 3.6.20
update: I have three non-unique indexes on T5.v, T6.v and T7.v
Pierre
source share