Bugs item #2725758, was opened at 2009-04-01 23:43
Message generated for change (Settings changed) made by sjoerd
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: Closed
>Resolution: Invalid
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: Loredana Afanasiev (lafanasi)
Date: 2009-04-02 10:28
Message:
Both right!
(too tired too late yesterday..:))
thank you guys!
l.
----------------------------------------------------------------------
Comment By: Jan Rittinger (tsheyar)
Date: 2009-04-02 07:29
Message:
One obvious problem I see is that you try to 'and' nodes (./true and
./false) -- Perhaps you may try the boolean values ('true()' and 'false()')
instead :)
----------------------------------------------------------------------
Comment By: Stefan Manegold (stmane)
Date: 2009-04-01 23:59
Message:
... in particular if (as most probably in your case) "mcl" and/or "mclient"
are aliases or scripts as "convenience-wrappers" around the original
mclient binary, make your that these scripts use proper quoting for
arguments that might contain spaces --- for details, see the documentation
of your scripting language and/or shell ...
----------------------------------------------------------------------
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