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
SELECT * FROM mydata WHERE (time=100 AND reg='1') OR (time=200 AND reg='2')
Expected behavior:
Following results set:
time reg value
100 1 11
200 2 22
Actual behavior:
No data
Additional info: SELECT * FROM mydata WHERE time=100 AND reg='1'
and SELECT * FROM mydata WHERE time=200 AND reg='2'
returns data correctly, so by adding OR I expected results of both
The text was updated successfully, but these errors were encountered:
I've already tested it also for the following queries:
SELECT * FROM mydata WHERE (time='1970-01-01T00:00:00.0000002Z' AND reg='2') SELECT * FROM mydata WHERE (time='1970-01-01T00:00:00.0000001Z' AND reg='1')
and additionally SELECT * FROM mydata WHERE (time='1970-01-01T00:00:00.0000002Z' OR reg='2')
all above returns correct data.
Combination of above with OR: SELECT * FROM mydata WHERE (time='1970-01-01T00:00:00.0000001Z' AND reg='1') OR (time='1970-01-01T00:00:00.0000002Z' AND reg='2')
returns empty result set.
It looks similar, but I'm not sure if it is the same issue.
Bug report
System info:
Ubuntu 16.04 + IndluxDB v1.0.0-beta1
Steps to reproduce:
Insert example data:
Run the query:
Expected behavior:
Following results set:
Actual behavior:
No data
Additional info:
SELECT * FROM mydata WHERE time=100 AND reg='1'
and
SELECT * FROM mydata WHERE time=200 AND reg='2'
returns data correctly, so by adding OR I expected results of both
The text was updated successfully, but these errors were encountered: