diff -r 54b5c9873ccb -r d5bf894fcf02 schema.py --- a/schema.py Thu Dec 03 09:58:07 2009 +0100 +++ b/schema.py Thu Dec 03 10:02:44 2009 +0100 @@ -698,6 +698,10 @@ """ distinct_query = True + # XXX turns mainvars into a required argument in __init__, since we've no + # way to guess it correctly (eg if using S,O or U the constraint will + # always be satisfied since we've to use a DISTINCT query) + def match_condition(self, session, eidfrom, eidto): return len(self.exec_query(session, eidfrom, eidto)) <= 1