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
For example, there is a MongoDB data collection with three records.
When executing the following statement, the query results are abnormal. select * from test_user where id !=1 and flag!=0;
The filter condition 'id != 1' did not take effect.
If only the 'id != 1' filter condition is present, the query results are correct. select * from test_user where id !=1 ;
The text was updated successfully, but these errors were encountered:
MongoSession#buildQuery method has a bug. The 1st predicate is overwritten by the 2nd predicate in the for loop because the internal key $or is duplicated.
For example, there is a MongoDB data collection with three records.
When executing the following statement, the query results are abnormal.
select * from test_user where id !=1 and flag!=0;
The filter condition 'id != 1' did not take effect.
If only the 'id != 1' filter condition is present, the query results are correct.
select * from test_user where id !=1 ;
The text was updated successfully, but these errors were encountered: