zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #10917
[Bug 967428] Re: errors not caught if raised during temp index creation
** Changed in: zorba
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/967428
Title:
errors not caught if raised during temp index creation
Status in Zorba - The XQuery Processor:
Fix Committed
Bug description:
Errors might not be caught by a try-catch expression if they are
raised during the creation of a temporary index. The following example
should return "caught" but instead the error is propagated up.
declare function local:foo() as element()*
{
for $i in 1 to 10
return if ($i mod 2 eq 0) then <a id="{$i}"/> else fn:error()
};
declare function local:bar() as element()*
{
for $i in 1 to 10
return <b id="{$i}"/>
};
try {
for $i in local:bar()/@id
for $j in local:foo()/@id
where xs:string($i) eq xs:string($j)
return $i
} catch * {
"caught"
}
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/967428/+subscriptions
References