diff -r 278fe9c1f3ad -r 7c0af7ef3325 server/rqlannotation.py --- a/server/rqlannotation.py Tue Jul 12 11:27:42 2011 +0200 +++ b/server/rqlannotation.py Tue Jul 12 11:27:43 2011 +0200 @@ -202,8 +202,8 @@ # since introduced duplicates will be removed if scope.stmt.distinct and diffscope_rels: return iter(_sort(diffscope_rels)).next() - # XXX could use a relation for a different scope if it can't generate - # duplicates, so we would have to check cardinality + # XXX could use a relation from a different scope if it can't generate + # duplicates, so we should have to check cardinality raise CantSelectPrincipal() def _select_main_var(relations):