36 from rql import BadRQLQuery, CoercionError |
36 from rql import BadRQLQuery, CoercionError |
37 from rql.stmts import Union, Select |
37 from rql.stmts import Union, Select |
38 from rql.nodes import (SortTerm, VariableRef, Constant, Function, Not, |
38 from rql.nodes import (SortTerm, VariableRef, Constant, Function, Not, |
39 Variable, ColumnAlias, Relation, SubQuery, Exists) |
39 Variable, ColumnAlias, Relation, SubQuery, Exists) |
40 |
40 |
41 from cubicweb import server |
|
42 from cubicweb.server.sqlutils import SQL_PREFIX |
41 from cubicweb.server.sqlutils import SQL_PREFIX |
43 from cubicweb.server.utils import cleanup_solutions |
42 from cubicweb.server.utils import cleanup_solutions |
44 |
43 |
45 def _new_var(select, varname): |
44 def _new_var(select, varname): |
46 newvar = select.get_variable(varname) |
45 newvar = select.get_variable(varname) |