Hi Jorge, your first error triggers a compile-time error. Here we know where the error appears. The second error on the other side is a runtime error (a cast failing because some strings cannot be converted to double) where we have no query information anymore. Regards, Jan P.S.: My best guess is that your query has a predicate with a comparison between a number and the result of a path step (like e.g., '/a/[b>3.14]') where not all resulting nodes can be cast to double (as e.g., in the following XML fragment '<a><b>42</b><b>pi</b></a>'). In this situations you might add calls to the built-in function fn:number() to modify the casting behavior (e.g., '/a/[number(b)>3.14]'). On 04/07/2008 10:41 AM, Jorge Martín Cuervo wrote with possible deletions:
Hi all, i have some error messages from mclient when i try to run an xquery.
First i've got:
ERROR = !type error: body of hr:fw() evaluates to `double | integer' which is not a subtype of `xs:double'
and i removed the return type from function, and later i've got:
ERROR = !ERROR: err:FORG0001: could not cast value from string to double.
is there any way to know where is the error (like the before message)?
thanks.
-- Jan Rittinger Database Systems Technische Universität München (Germany) http://www-db.in.tum.de/~rittinge/