equal
deleted
inserted
replaced
128 rqlst.need_distinct = need_distinct |
128 rqlst.need_distinct = need_distinct |
129 return has_text_query |
129 return has_text_query |
130 |
130 |
131 |
131 |
132 |
132 |
133 class CantSelectPrincipal(Exception): pass |
133 class CantSelectPrincipal(Exception): |
|
134 """raised when no 'principal' variable can be found""" |
134 |
135 |
135 def _select_principal(sqlscope, relations, _sort=lambda x:x): |
136 def _select_principal(sqlscope, relations, _sort=lambda x:x): |
136 """given a list of rqlst relations, select one which will be used to |
137 """given a list of rqlst relations, select one which will be used to |
137 represent an invariant variable (e.g. using on extremity of the relation |
138 represent an invariant variable (e.g. using on extremity of the relation |
138 instead of the variable's type table |
139 instead of the variable's type table |