[Cubicweb] RQL / Casts ?
carlos.balderas at gmail.com
Wed Oct 13 02:09:15 CEST 2010
Some body know if there is a way to make a cast in a rql sentence? ( or a
trick :-) )
I am trying to make a UNION but I need to cast an element to string.
(Any *A*,B,C WHERE Y is Entity, Y *isstring1* A, Y isstring2 B, Y isstring3
(Any *Z*,B,C WHERE Y is Entity, Y *ISNUMBER* Z, Y isstring2 B, Y isstring3
And I get an error due A and Z are different types.
I wanted to ask you first before looking a workaround of this solution.
Thank you very much for your comments.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cubicweb