[Cubicweb] RQL / Casts ?

Carlos Balderas carlos.balderas at gmail.com
Wed Oct 13 02:09:15 CEST 2010

Hello List!

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
C ....)
(Any *Z*,B,C WHERE Y is Entity, Y *ISNUMBER* Z, Y isstring2 B, Y isstring3
C, ....)

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.

Carlos Balderas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubicweb.org/pipermail/cubicweb/attachments/20101012/fc42d7b5/attachment-0186.html>

More information about the Cubicweb mailing list