← Back to team overview

zorba-coders team mailing list archive

[Bug 947079] Re: FOTS: GroupBy test results in Seg Fault

 

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.
https://bugs.launchpad.net/bugs/947079

Title:
  FOTS: GroupBy test results in Seg Fault

Status in Zorba - The XQuery Processor:
  New

Bug description:
  The following test from the
  prod/GroupByClause.xml
  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:
https://bugs.launchpad.net/zorba/+bug/947079/+subscriptions


References