Bugs item #2725758, was opened at 2009-04-01 23:43
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2725758&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: Loredana Afanasiev (lafanasi)
Assigned to: Nobody/Anonymous (nobody)
Summary: XQ: or and union

Initial Comment:
Hi team,

I get this two weird errors. Practically I can't write Boolean connectives in 
predicates, nor union of path expressions. Am I missing something totally 
obvious? 

[lafan...@zookst4 benchmarks]$ mclient -s "collection('HAN')[true and false]"
MAPI  = mone...@localhost:50100
QUERY = collection('HAN')[true
ERROR = !parse error: syntax error, unexpected $end, expecting ] on line 2, 
column 1
        !parse error: XQuery parsing failed
and: cannot open
false]: cannot open
[lafan...@zookst4 benchmarks]$ mcl -s "(collection('HAN')//spreker | 
collection('HAN')//spreker)"
MAPI  = mone...@localhost:50100
QUERY = (collection('HAN')//spreker
ERROR = !parse error: syntax error, unexpected $end, expecting ) on line 2, 
column 1
        !parse error: XQuery parsing failed
|: cannot open
collection('HAN')//spreker): cannot open

thanks,
l.

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

>Comment By: Stefan Manegold (stmane)
Date: 2009-04-01 23:56

Message:
Works fine for me with the Feb2009 release branch --- well,
your literal

mclient -s "collection('HAN')[true and false]"
and
mcl -s "(collection('HAN')//spreker | collection('HAN')//spreker)"

"obviously" don't work, as mclient is not called with proper
name/options,
but the corrected

mclient -lx -s "collection('HAN')[true and false]"
and
mclient -lx -s "(collection('HAN')//spreker |
collection('HAN')//spreker)"

do work fine for me.

To me, your error messages suggest that the spaces are not quoted
properly, i.e., only

"collection('HAN')[true"
resp.
"(collection('HAN')//spreker"

is seen as query and sent to the server.
If you use mclient with -s option, make sure that you properly quote the
argument to -s on your command line such that the your shell indeed
sees/treats it a one string/argument ...


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

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

------------------------------------------------------------------------------
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to