server/rqlannotation.py
branchstable
changeset 3694 33dbb1da1db9
parent 3689 deb13e88e037
child 3815 50b87f759b5d
equal deleted inserted replaced
3693:92581287726f 3694:33dbb1da1db9
   232         * it's not used as lhs in any final or inlined relation
   232         * it's not used as lhs in any final or inlined relation
   233         * there is no type restriction on this variable (either explicit in the
   233         * there is no type restriction on this variable (either explicit in the
   234           syntax tree or because a solution for this variable has been removed
   234           syntax tree or because a solution for this variable has been removed
   235           due to security filtering)
   235           due to security filtering)
   236         """
   236         """
   237         assert rqlst.TYPE == 'select', rqlst
   237         #assert rqlst.TYPE == 'select', rqlst
   238         rqlst.has_text_query = self._annotate_union(rqlst)
   238         rqlst.has_text_query = self._annotate_union(rqlst)
   239 
   239 
   240     def _annotate_union(self, union):
   240     def _annotate_union(self, union):
   241         has_text_query = False
   241         has_text_query = False
   242         for select in union.children:
   242         for select in union.children: