Open Du-z opened 2 years ago
So far I've been unable to query infinity and nan using the <float>
cast syntax.
Using a rest client: nan returns zero and ∞ fails to execute at all.
I am currently experimenting on the behavior without casts.
If you could send me a demo query for nan that'd be greatly appreciated 👍
Current implementation queries like so:
and so:
The former two examples cannot be produced using the current serializer. Which is good!
Hey @ProphetLamb SurrealDB doesn't support NaN
or -Inf
or +Inf
yet. It does however support (as you probably know) arbitrary large decimal numbers.
Some tests from ResultTests.FloatTryGetValueQueryTest and ResultTests.DoubleTryGetValueQueryTest do not return the correct response.
This is because the parameter inserts
∞
rather thaninf
into the query.The query parameterization needs to be updated to use
inf
etc