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
When I try to run a count with a by and where clause and the where clause evaluates to false the code produces an error message from the runtime checks.
Contrived example
LET Ip := input();
LET ACondition := false;
LET TotalCount := count(BY Ip WHERE ACondition TOTAL);
Expected behavior
Should complete without issue and not add 1 to the count.
Actual behavior
Sqrl script runs fine but an error is printed out to the output
When I try to run a count with a by and where clause and the where clause evaluates to false the code produces an error message from the runtime checks.
Contrived example
Expected behavior
Should complete without issue and not add 1 to the count.
Actual behavior
Sqrl script runs fine but an error is printed out to the output
Steps to reproduce the behavior
Save the example and run
This appears to be caused by https://github.com/sqrl-lang/sqrl/blob/main/packages/sqrl-redis-functions/src/CountFunctions.ts#L260 which is expecting an array as the argument and null is getting passed during a false statement.
Not sure if I am doing something wrong with my setup or use, it's the first day I've tried to evaluate the library.
The text was updated successfully, but these errors were encountered: