This is an optimization (hoisting) problem.

Reassigning to Markos.

** Changed in: zorba
     Assignee: Gabriel Petrovay (gabipetrovay) => Markos Zaharioudakis 
(markos-za)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867266

Title:
  Unexpected updating expression illegal here

Status in Zorba - The XQuery Processor:
  New

Bug description:
  This raises an error:
  4,1: update static error [err:XUST0001]: updating expression illegal here; 
raised at /zorba/trunksrc/src/compiler/expression/fo_expr.cpp:222
  variable $x:=<a/>;
  for $y in $x
  return
  replace value of node $x with "x"

  This doesn't:
  variable $x:=<a/>;
  for $y in $x
  return
  replace value of node $y with "x"

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867266/+subscriptions

-- 
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