v.23.7Improvement

Function hasToken no longer allows infinite loops, resolving issue #52156

It was possible to use the function hasToken for infinite loop. Now this possibility is removed. This closes #52156. #52160 (Alexey Milovidov).
The possibility of using the hasToken function in a way that caused infinite loops has been removed.

Why it matters

This change prevents potential infinite loops caused by improper or recursive use of the hasToken function, improving stability and reliability of queries using this function.

How to use it

Users should avoid writing queries that can cause infinite loops with the hasToken function, as its behavior has been restricted to prevent such cases automatically.