virtuoso-opensource icon indicating copy to clipboard operation
virtuoso-opensource copied to clipboard

COALESCE and division by zero

Open schwarja opened this issue 10 years ago • 2 comments

Query:

SELECT DISTINCT ?Z WHERE 
{
BIND (COALESCE(1/0,3) AS ?Z)
}

Virtuoso returns error:

Virtuoso 22012 Error SR084: Division by 0.

But according to SPARQL 1.1 documentation (http://www.w3.org/TR/sparql11-query/#func-coalesce):

COALESCE(1/0, ?x) returns 2 supposing ?x = 2

schwarja avatar Jan 22 '15 20:01 schwarja

@schwarja: This problem has been recreated and reported to development to fix ...

HughWilliams avatar Jan 22 '15 21:01 HughWilliams

Is this still not fixed?

daniel-dona avatar Oct 11 '22 15:10 daniel-dona