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 `e0`.* from `entity` as `e0` where (((`e0`.`prop1` = 'value1' and `e0`.`prop2` = 'value2')) and ((`e0`.`prop1` = 'value3' and `e0`.`prop2` = 'value4')))
... instead of the expected:
select `e0`.* from `entity` as `e0` where (((`e0`.`prop1` = 'value1' and `e0`.`prop2` = 'value2')) or ((`e0`.`prop1` = 'value3' and `e0`.`prop2` = 'value4')))
Stack trace
No error, so no stack trace.
To Reproduce
Steps to reproduce the behavior:
See above.
Expected behavior
Create this query:
select `e0`.* from `entity` as `e0` where (((`e0`.`prop1` = 'value1' and `e0`.`prop2` = 'value2')) or ((`e0`.`prop1` = 'value3' and `e0`.`prop2` = 'value4')))
Additional context
It is related with the querybuilding using the incorrect synthax to append the group. I've created an additional repo where the query is constructed correctly, but I am not sure what effect the removal of that if has.
Describe the bug
If you query like:
... it will construct a query like:
select `e0`.* from `entity` as `e0` where (((`e0`.`prop1` = 'value1' and `e0`.`prop2` = 'value2')) and ((`e0`.`prop1` = 'value3' and `e0`.`prop2` = 'value4')))
... instead of the expected:
select `e0`.* from `entity` as `e0` where (((`e0`.`prop1` = 'value1' and `e0`.`prop2` = 'value2')) or ((`e0`.`prop1` = 'value3' and `e0`.`prop2` = 'value4')))
Stack trace
No error, so no stack trace.
To Reproduce
Steps to reproduce the behavior:
See above.
Expected behavior
Create this query:
select `e0`.* from `entity` as `e0` where (((`e0`.`prop1` = 'value1' and `e0`.`prop2` = 'value2')) or ((`e0`.`prop1` = 'value3' and `e0`.`prop2` = 'value4')))
Additional context
It is related with the querybuilding using the incorrect synthax to append the group. I've created an additional repo where the query is constructed correctly, but I am not sure what effect the removal of that if has.
dev...jsprw:patch-2
Versions
The text was updated successfully, but these errors were encountered: