Bugs item #2807105, was opened at 2009-06-16 13:03
Message generated for change (Comment added) made by tsheyar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2807105&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: 5
Private: No
Submitted By: Ying Zhang (yingying)
>Assigned to: Ying Zhang (yingying)
Summary: XQ: misleading error msg for fn:resolve-QName

Initial Comment:
Hi all, I think the following error message is a bit misleading:

$ echo 'fn:resolve-QName("foo:test", <a xmlns:foo="bar"/>)' | pf
error in function application: at (1,1-1,50): wrong number of arguments for 
function `fn:resolve-QName' (expected 1, got 2)

because the query itself is correct (according to the standard), and the error 
is actually caused by that pathfinder implements a different signature than the 
standard one.
So I have two suggestions:
- change the error message into:  reference to undefined function 
`fn:resolve-QName', which makes the code and the documentation 
(http://monetdb.cwi.nl/projects/monetdb/XQuery/Documentation/QName-Functions.html)
 matching each other
- since pathfinder supports a 'resolve-QName' function, with different 
signature, maybe we should consider using the prefix 'pf', instead of 'fn'?

Regards,

Jennie

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

>Comment By: Jan Rittinger (tsheyar)
Date: 2009-09-07 23:37

Message:
Jennie,

this is an artifact from Jens. fn:resolve-QName with one parameter
basically is a cast to xs:QName -- but have a look in
compiler/algebra/builtins.c for more information.

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

Comment By: Stefan Manegold (stmane)
Date: 2009-08-14 13:59

Message:
tagged subject

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

Comment By: Sjoerd Mullender (sjoerd)
Date: 2009-07-29 17:20

Message:
Jan, can you pronounce on this?

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

Comment By: Ying Zhang (yingying)
Date: 2009-06-25 18:13

Message:
That is fine with me.

But how about the fn:resolve-QName with one argument?  It's quite unclear
what it does.

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

Comment By: Jan Rittinger (tsheyar)
Date: 2009-06-18 18:05

Message:
Hi Jennie,

I added a signature for fn:resolve-QName with two arguments. The error
message now is: ``fatal error: Algebra implementation for function
`fn:resolve-QName' unknown.''

Can you live with that?

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

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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to