Hi Markos,
works-mod.xml is the context item for this query.

Running the query in Zorba and assigning the context item results in the 
correct error case:
type error [err:XPTY0004]: singleton expected

However, if the same exact results in a SEG FAULT when run with the Zorba FOTS 
I am reassigning the bug to me for further investigation.

** Attachment added: "works-mod.xml"

** Changed in: zorba
     Assignee: Markos Zaharioudakis (markos-za) => Sorin Marian Nasoi 

You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.

  FOTS: GroupBy test results in Seg Fault

Status in Zorba - The XQuery Processor:

Bug description:
  The following test from the
  results in a Segmentation Fault :

  - "group-005"
  xquery version '3.0';
  declare namespace o = 'http://www.zorba-xquery.com/options/features';
  declare option o:enable 'hof';  
    for $x in //employee 
    let $key := $x/hours 
    group by $key 
    return <group hours="{$key}" avHours="{avg($x/hours)}"/>

To manage notifications about this bug go to:

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