Bugs item #2664405, was opened at 2009-03-05 09:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2664405&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: PF/compiler
Group: Pathfinder "stable"
Status: Open
Resolution: None
Priority: 4
Private: No
Submitted By: Jan Flokstra (jflokstra)
Assigned to: Nobody/Anonymous (nobody)
Summary: fn:collection("DOES-NOT-EXIST") does not fail

Initial Comment:
When the argument to fn:collection() is non existent patthfinder return the 
empty sequence. I think this is incorrect. In the specs 
(http://www.w3.org/TR/xpath-functions/#func-collection) the part on resolving 
the name of the collection says:

This function takes an xs:string as argument and returns a sequence of nodes 
obtained by interpreting $arg as an xs:anyURI and resolving it according to the 
mapping specified in Available collections described in Section C.2 Dynamic 
Context ComponentsXP. If Available collections provides a mapping from this 
string to a sequence of nodes, the function returns that sequence. If Available 
collections maps the string to an empty sequence, then the function returns an 
empty sequence. If Available collections provides no mapping for the string, an 
error is raised [err:FODC0004].

So in my opinion an error should be generated. We had a couple of cases where 
an error would have been very handy for the user to find errors in queries.

JanF.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2664405&group_id=56967

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to