zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #16176
Re: [Merge] lp:~zorba-coders/zorba/bug-1026250 into lp:zorba
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 /Users/pjl/src/flwor/zorba/repo/bug-1026250/zorba/src/compiler/codegen/plan_visitor.cpp:1028
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 here.
FYI: I modified the code on the branch to overload operator<< for ClauseKind -- makes it handy for debugging.
--
https://code.launchpad.net/~zorba-coders/zorba/bug-1026250/+merge/138044
Your team Zorba Coders is subscribed to branch lp:zorba.
References