The query does not segfault for me. It returns an error saying that the
context item is not defined, which is correct because the query has this
expr: //employee

Does the FOTS driver set the context item somehow? If yes, than I need
the xml which  is assigned to the context item.

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 = '';
  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:
Post to     :
Unsubscribe :
More help   :

Reply via email to