Activity log for bug #900688

Date Who What changed Old value New value Message
2011-12-06 10:57:17 David Graf bug added bug
2012-01-30 10:12:22 David Graf description In XQuery 3.0, it is possible to make forward references to global variables, like in: declare variable $x := 3 + $b; declare variable $b := 4; $x Such forward references can cause circular dependencies like in: declare variable $x := 3 + $b; declare variable $b := $x; $x This needs to be detected and the error XQST0054 thrown. Currently, Zorba throws XPST0008 According to the XQuery 3.0 spec, forward references of variables should work. Thus, queries like this should work: declare variable $y := $x; declare variable $x := <a/>; $y Currently, this throws the error XPST0008. This implies that circular dependencies have to be detected. Like in Such forward references can cause circular dependencies like in: declare variable $x := 3 + $b; declare variable $b := $x; $x This has to cause error XQST0054.
2012-01-30 10:17:31 David Graf description According to the XQuery 3.0 spec, forward references of variables should work. Thus, queries like this should work: declare variable $y := $x; declare variable $x := <a/>; $y Currently, this throws the error XPST0008. This implies that circular dependencies have to be detected. Like in Such forward references can cause circular dependencies like in: declare variable $x := 3 + $b; declare variable $b := $x; $x This has to cause error XQST0054. According to the XQuery 3.0 spec (sentence 'The static context for an initializing expression includes all functions, variables, and namespaces that are declared or imported anywhere in the Prolog, other than the variable being declared.' at http://www.w3.org/TR/xquery-30/#id-variable-declarations), forward references of variables should work. Thus, queries like this should work: declare variable $y := $x; declare variable $x := <a/>; $y Currently, this throws the error XPST0008. This implies that circular dependencies have to be detected. Like in Such forward references can cause circular dependencies like in: declare variable $x := 3 + $b; declare variable $b := $x; $x This has to cause error XQST0054.
2012-06-12 21:03:51 Dana Florescu zorba: importance Undecided Medium
2012-06-12 21:04:01 Dana Florescu zorba: assignee Markos Zaharioudakis (markos-za)
2012-06-12 22:23:56 Dana Florescu zorba: importance Medium High
2012-06-12 22:23:58 Dana Florescu zorba: milestone 2.7
2012-08-16 22:17:39 Markos Zaharioudakis zorba: status New Fix Committed
2012-08-24 23:43:11 Chris Hillery zorba: milestone 2.7 3.0
2012-08-28 01:08:57 Chris Hillery zorba: milestone 3.0 2.7
2012-10-05 10:01:01 Markos Zaharioudakis zorba: status Fix Committed Fix Released