I can bind value in any format, it's under my control. but I am not sure about query which comes to me for execution.
for eg. if query is something like $a = 0. in this case, I bind value for $a as number. but when query will execute. it will give me an error because of type mismatch. one possible way is I need to parse query string as well and convert it to something like $a = xs:decimal(0) I Need to test all the scenarios. This is the one scenario I explain over here. On Fri, Jun 21, 2013 at 12:58 PM, Michael Kay <[email protected]> wrote: > > On 21 Jun 2013, at 06:51, Kunal Chauhan wrote: > > Hello, > > How can I handle this situation other that cast it into number ? > Because in my process I am getting value as well as query at run time. So, > I am not aware of query which will execute. > > That's why I have to bind XQItem only. And I am getting wrong result. > > > If you want to compare two values as numbers then you have to convert them > to numbers in order to compare them. I can't see why that should be a > problem. > > Michael Kay > Saxonica > > -- *Kunal Chauhan* [email protected] [+918655517141]
_______________________________________________ [email protected] http://x-query.com/mailman/listinfo/talk
