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>
/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