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
If you try to use "between" jpql-marco with anything except literal numbers and "now" as arguments "Mismatched token error" will be thrown
Other date jpql-marcos(e.g. "dateEquals") parameters support works fine.
Note: for many of cases expression like "now + :days" support is also required
Upd: changed type to feature as this behaviour is documented in exactly the same way
Steps To Reproduce
create jpql method e.g. for dataloader query override
make it use "between" macro function and bindable query parameter as an argument
try to emit its execution
see error exception
Current Behavior
The exception is thrown for any parameter usage case: Caused by: io.jmix.data.impl.jpql.JpqlSyntaxException: Errors found for input jpql:[select e from LifeEvent e where @between(e.startDate, now, :days, day)] CommonErrorNode [<mismatched token: [@22,59:63=':days',<30>,1:59], resync=@between(e.startDate, now, :days, day)>]
Expected Behavior
Macro Arguments are pre-calculated and query works fine
Environment
Jmix version: 1.x, 2.x
Bug Description
If you try to use "between" jpql-marco with anything except literal numbers and "now" as arguments "Mismatched token error" will be thrown
Other date jpql-marcos(e.g. "dateEquals") parameters support works fine.
Note: for many of cases expression like "now + :days" support is also required
Upd: changed type to feature as this behaviour is documented in exactly the same way
Steps To Reproduce
Current Behavior
The exception is thrown for any parameter usage case:
Caused by: io.jmix.data.impl.jpql.JpqlSyntaxException: Errors found for input jpql:[select e from LifeEvent e where @between(e.startDate, now, :days, day)] CommonErrorNode [<mismatched token: [@22,59:63=':days',<30>,1:59], resync=@between(e.startDate, now, :days, day)>]
Expected Behavior
Macro Arguments are pre-calculated and query works fine
Sample Project
testjmixbetween.zip
The text was updated successfully, but these errors were encountered: