Bugs item #2990003, was opened at 2010-04-20 21:36 Message generated for change (Settings changed) made by shcheklein You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=713730&aid=2990003&group_id=129076
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Query Execution >Group: Sedna (current) >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) >Assigned to: Ivan Shcheklein (shcheklein) >Summary: bad value at "for $x at $pos in $y order by $z" Initial Comment: I've just hit this bug. When I use an order by in conjunction with "at $pos", the position returned is not in the returned set, but in the source set. for $x at $pos in (5,2,1,6,7) order by $x return <TR><TD>{$pos}</TD><TD>{$x}</TD></TR> & I was expecting the value for $pos to be incremental from 1 to 5, but it instead returned the position in the initial set. I think this is a bug. If not, how do I get the actual position after the sort? daniel ---------------------------------------------------------------------- >Comment By: Ivan Shcheklein (shcheklein) Date: 2010-04-20 22:13 Message: Hi Daniel, It's not a bug. Probably, you need something like this: for $x at $pos in for $y in (5,2,1,6,7) order by $y return $y return <TR><TD>{$pos}</TD><TD>{$x}</TD></TR> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=713730&aid=2990003&group_id=129076 ------------------------------------------------------------------------------ _______________________________________________ Sedna-discussion mailing list Sedna-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sedna-discussion