~nbrinza/zorba/parse-fragment

« back to all changes in this revision

Viewing changes to test/rbkt/Queries/zorba/hashjoins/no_idx2.xq

  • Committer: nbrinza at gmail
  • Date: 2013-04-09 14:34:55 UTC
  • mfrom: (10477.1.877 zorba)
  • Revision ID: nbrinza@gmail.com-20130409143455-wofxpaysvqjci57p
Merged with Zorba trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
declare function local:dummy($x as xs:integer)
 
4
{
 
5
 $x
 
6
};
 
7
 
 
8
 
 
9
declare function local:foo($x as xs:integer) as xs:integer+
 
10
{
 
11
  $x * $x,
 
12
  local:dummy($x)
 
13
};
 
14
 
 
15
 
 
16
for $x in (<a>1</a>, <a>2</a>, <a>3</a>)
 
17
for $y in (1, 2)
 
18
for $z in local:foo($y)
 
19
where xs:integer($x) eq $z
 
20
return $z