I modified test flwor10.xq to be:

declare namespace ext = "http://www.zorba-xquery.com/extensions";;

variable $x := 0;

(# ext:materialize #) {
  for $i in (1, 2, 3)
  let $y := { $x := $x + $i; () }
  return $x

ran it and got:

Zorba error [zerr:ZXQP0002]: "false": assertion failed with the message: 
ClauseKind = materialize_clause; raised at 

The switch statement doesn't have a case for materialize_clause.  Either it 
should, or it should never be the case that a materialize_clause should occur 

FYI: I modified the code on the branch to overload operator<< for ClauseKind -- 
makes it handy for debugging.
Your team Zorba Coders is subscribed to branch lp:zorba.

Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to