cubicweb #3227607 crash with an rql query involving WITH/BEING [open]

>>> rql('Any X, VC WHERE X name "cubicweb" WITH X, VC BEING (Any X, COUNT(V) GROUPBY X WHERE V version_of X)')
Traceback (most recent call last):
[...]
cursor.execute(str(query), args)
ProgrammingError: column _t0.cw_name does not exist
LINE 6: WHERE _T0.cw_name='cubicweb'

The similar:

>>> rql('Any X, VC WHERE X name N WITH X, VC BEING (Any X, COUNT(V) GROUPBY X WHERE V version_of X)')
<resultset 'Any X, VC WHERE X name N WITH X, VC BEING (Any X, COUNT(V) GROUPBY X WHERE V version_of X)' (1 rows): [2533, 3L] (('Project', 'Int'))>

looks ok.

prioritynormal
typebug
done in<not specified>
closed by<not specified>