Bugs item #2388047, was opened at 2008-12-04 11:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2388047&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Floris Ouwendijk (floris233)
Assigned to: Nobody/Anonymous (nobody)
Summary: Mclient exit code
Initial Comment:
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>
<fault!ERROR: XML Generation: tmp_3265 BAT does not have a 24 head.
MAPI = [EMAIL PROTECTED]:49980
QUERY = element { "log" } { pf:collection("cons02_log.xml")//run }
ERROR = !ERROR:
!ERROR: XML Generation: NULL BAT has a 24 head, but tail is NULL.
!ERROR:
!ERROR: xquery_print_result_main: operation failed.
$ echo $?
0
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 = [EMAIL PROTECTED]: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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2388047&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