Bugs item #2153484, was opened at 2008-10-08 18:41
Message generated for change (Settings changed) made by tsheyar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2153484&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 general
Group: Pathfinder "stable"
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Loredana Afanasiev (lafanasi)
Assigned to: Jan Rittinger (tsheyar)
Summary: XQ: string() and substring()

Initial Comment:
Hi,

These seem like small bugs.

1.
[EMAIL PROTECTED] ~]$ mclient -lx -s 'fn:string(<a><b/></a>/*)'

MAPI  = [EMAIL PROTECTED]:50000
QUERY = fn:string(<a><b/></a>/*)
ERROR = !fatal error: attribute 'pos' with type '0x4000' not found in 
environment

2.
[EMAIL PROTECTED] ~]$ mclient -lx -s 'let $doc := <a><b>bla</b></a> return 
fn:substring($doc/*, 1,1)'
"b"

[EMAIL PROTECTED] ~]$ mclient -lx -s 'let $doc := <a><b>bla</b></a> return 
fn:substring($doc/*, 1)'

MAPI  = [EMAIL PROTECTED]:50000
QUERY = let $doc := <a><b>bla</b></a> return fn:substring($doc/*, 1)
ERROR = !type error: no variant of function fn:substring accepts the given 
argument type(s): string?; integer
        !type error: maybe you meant:
        !type error:   fn:substring (string?, double) as string
        !type error:   fn:substring (string?, double, double) as string
        !type error: illegal arguments for function fn:substring

thanks,
l.

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

Comment By: Stefan Manegold (stmane)
Date: 2008-11-11 17:57

Message:
Thanks for the fix, Jan!

Re-opened to remind us that (as usually) we still want to add a test ...


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

Comment By: Jan Rittinger (tsheyar)
Date: 2008-11-11 17:49

Message:
I fixed a bug in the type-checking phase (during function overloading some
flags were not properly reset). All three test cases now compile again.

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

Comment By: Peter Boncz (boncz)
Date: 2008-11-10 21:49

Message:
Hi Jan,

both problems appear to be compiler related, the first obviously in the
algebra backend, and the second somewhere in the automatic casting and
signature matching in the core part.

The problems seem easy to reproduce - are they also easy to fix?

Peter

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

Comment By: Stefan Manegold (stmane)
Date: 2008-10-08 18:43

Message:
Lefteris,

could you please check, and get Jan involved, if necessary?

Thanks!
Stefan


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

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to