[MonetDB-users] Mclient exit value

Dear users,
While investigating a problem where a collection-query returns invalid
data, I ran into problems with mclient seemingly not generating a proper
exit value.
If I run:
$ mclient -lxq -p49980 -s"element { \"log\" } {
pf:collection(\"cons02_log.xml\")//run }"
-removed a lot of xml-
</stdout>

Floris, I personally consider this a bug, so please go ahead and file a but report about it --- in any case, bug reports make dealing with, tracing and monitoring of problems much more convenient. Thanks you very much! Stefan On Wed, Dec 03, 2008 at 12:39:13PM +0100, Floris Ouwendijk (DT) wrote:
Dear users,
While investigating a problem where a collection-query returns invalid data, I ran into problems with mclient seemingly not generating a proper exit value.
If I run: $ mclient -lxq -p49980 -s"element { \"log\" } { pf:collection(\"cons02_log.xml\")//run }" -removed a lot of xml- </stdout>
The above returns a lot of correct XML, then dumps an error to stderr, but returns error code 0. In contrast, the following works as expected:
$ mclient -lxq -p49980 -s"eelement { \"log\" } { pf:collection(\"cons02_log.xml\")//run }" >/dev/null MAPI = monetdb@server:49980 QUERY = eelement { "log" } { pf:collection("cons02_log.xml")//run } ERROR = !parse error: syntax error, unexpected {, expecting $end on line 1, column 10 (next token is `{') !parse error: XQuery parsing failed !# halted in parser.tab.c (PFparse), line 5716 $ echo $? 1
Which is the expected result for a flawed query.
Do you agree this is a problem that should be reported, or is there a better way of finding out whether there were problems running the query?
Kind regards,
Floris
------------------------------------------------------------------------- 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-users mailing list MonetDB-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/monetdb-users
-- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |
participants (2)
-
Floris Ouwendijk (DT)
-
Stefan Manegold