NaN comparison error has no location hint

Bug #960083 reported by Alexander Kreutz
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Low
Markos Zaharioudakis

Bug Description

The follwing code fails with a NaN comparison error:

fn:number(<x/>) lt 100

The resulting error message
Zorba store error [zerr:ZSTR0041]: NaN comparison

has no location information. It may be very hard for a user to find the cause of the error in his code.

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

Actually, the result of the query should be "false".

Changed in zorba:
assignee: nobody → Paul J. Lucas (paul-lucas)
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

There are a few places where this error is mentioned:

runtime/booleans/BooleanImpl.cpp lines 514, 678
store/naive/simple_index_general.cpp line 1060

The first two lines were modified by me, but those lines only check for the error and return false, i.e., they're not points where the exception is thrown.

The last line is a point where the exception is thrown with no error location. That code was last touched by Markos. Hence, this bug should be assigned to him.

Changed in zorba:
assignee: Paul J. Lucas (paul-lucas) → Markos Zaharioudakis (markos-za)
Changed in zorba:
status: New → In Progress
Changed in zorba:
importance: Undecided → Low
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
milestone: none → 2.7
Changed in zorba:
milestone: 2.7 → 2.6
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.