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
this loop keeps running even after value is found. in his example, if you pass >=, it finds it on the first iteration, but the loop does not stop. it keeps going till it iterates over all OPERATORS.
I think breaking the loop makes sense. if not, can you explain why?
At the moment, when operator has been found the loop continues its work. Please, take a look at the following piece of code
metasql/lib/database.js
Line 20 in d606878
As a result, if you pass the below input to the function, the last operator (<=) will be resolved.
Maybe in this case it makes sense to use the
break
statement.The text was updated successfully, but these errors were encountered: