server/sources/rql2sql.py
branchstable
changeset 4719 aaed3f813ef8
parent 4467 0e73d299730a
child 4794 81075b09ebf1
equal deleted inserted replaced
4718:3dc3ad02d091 4719:aaed3f813ef8
    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)