Bugs item #2664405, was opened at 2009-03-05 09:26
Message generated for change (Comment added) made by stmane
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: Closed
>Resolution: Fixed
Priority: 4
Private: No
Submitted By: Jan Flokstra (jflokstra)
Assigned to: Peter Boncz (boncz)
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.

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

>Comment By: Stefan Manegold (stmane)
Date: 2009-04-07 13:17

Message:
- added test in
pathfinder/tests/BugTracker/Tests/fn-collection_DOES-NOT-EXIST.SF-2664405.*
(CVS HEAD)

  works as expected, i.e., an error is generated

- complete administration


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

Comment By: Peter Boncz (boncz)
Date: 2009-04-07 12:02

Message:
fixed in head

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

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

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to