Uncatched index probe error

Bug #1051897 reported by David Graf
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Committed
Medium
Markos Zaharioudakis

Bug Description

The following query shouldn't throw an error. But it does!

import module namespace idml = "http://www.zorba-xquery.com/modules/store/static/indexes/dml";

try {
 idml:probe-index-range-value(xs:QName("local:bla"),
                                       3, true(), true(), true(), true())
}
catch * {
  "catch"
}

I think it has to be a problem in the compiler. Because the Iterator Tree doesn't even seem to contain a TryCatchIterator. At least the next function of the TryCatchIterator is never reached.

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

IMHO, the query should raise a static error. The error should be (and is) detected at compile-time. The catch clause only catches errors raised during runtime. However, it is confusing that the error that is raised indicates that it's a dynamic error, i.e. zerr:ZDDY0025.

Maybe this should be changed.

Revision history for this message
David Graf (davidagraf) wrote :

Ah, yes. Sorry, I was confused. Of course the catch doesn't work!

Anyway: Should I replace ZDDY0025 with for example ZDST0061?

Changed in zorba:
assignee: nobody → Matthias Brantner (matthias-brantner)
Changed in zorba:
importance: Undecided → Critical
assignee: Matthias Brantner (matthias-brantner) → Markos Zaharioudakis (markos-za)
milestone: none → 2.9
Changed in zorba:
importance: Critical → Medium
milestone: 2.9 → 3.0
tags: added: error-reporting
Changed in zorba:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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