RE: Empty sequences in "for" clause bindings

"Srinivas Pandrangi" <[email protected]> Thu, 8 Jul 2004 10:36:36 -0700
Newsgroups gmane.comp.web.query-languages
Message-ID <[email protected]>
The tuple stream generated by the for clause will be empty. The result will be an empty sequence.
-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Stéphane Mbaye
Sent: Thursday, July 08, 2004 9:59 AM
To: XQuery
Subject: Empty sequences in "for" clause bindings


Dear all,
 
how "for" clause tuples are generated when some of the bounded variables match the empty sequence ?
 
For example should the following query return (1, 2, 3), an error or anything else ?
 
for $a in (), $b in (1, 2, 3)
return ($a, $b)
 
 
Regards
 


 
Stéphane
Mbaye

  _____  

 

GAEL Consultant 
Cité Descartes
18, rue Albert Einstein
77420 Champs-sur-Marne
France 
Software Director
 

mailto:[email protected]
http://www.gael.fr 
 
 

tel +33-(0)1 64 73 99 55
fax +33-(0)1 64 73 51 60