Behavior of the "skip" for multiple columns in "or" operator in where clause #300
-
|
When I query having multiple columns in "or" operator in the where clause, and if I use "skip", then "skip" gets applied to results of the all columns. Explaining by example using IDBStudio with demo database: Below returns 14 results;
If I apply "skip: 1" to this exact query as above, then it returns 11 results. Here I see that each of the columns loses a row due to the applied skip;
So skip here is applied to the records related to all of the columns. Thanks for all the help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
|
this is a bug, i have created an issue for it - #301 |
Beta Was this translation helpful? Give feedback.
-
|
Here's a reproducible example: Below returns 83 records: If I add skip 0 and limit 20 to the same query, I get the first 20 results, which is correct: But if I try to skip the first 20 and get the next 20 records, it doesn't work. I still get the first 20 results no matter what the skip count is. Below returns the exact same records as above: It seems that skip is ignored when where clause is used in array form. I hope this example helps you @ujjwalguptaofficial Thanks a lot. |
Beta Was this translation helpful? Give feedback.
-
|
The issue is fixed in version 4.4.7, kudos to @ujjwalguptaofficial |
Beta Was this translation helpful? Give feedback.
The issue is fixed in version 4.4.7, kudos to @ujjwalguptaofficial