[Cubicweb] An rql bug ?
aurelien.campeas at gmail.com
Wed Feb 11 10:38:44 CET 2015
> RRQLExpression('EXISTS(U can_run O) OR EXISTS(U can_run X, O in_project
> Adding this permission rule fails with a "type inconsistancy"
> exception from rql.
> Looking into the rql code, it seems that the type checker consideres the
> OR like an AND, that is the types in the first part 'and' the types of
> variables in the second part must be similar.
O plays different roles here, and is assigned conflicting types by the
(still because EXISTS does not define a new scope for variables, but
I can quite understand why that case turns out wrong).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cubicweb