branch | stable |
changeset 3985 | d5bf894fcf02 |
parent 3980 | b17cf4a2e09e |
child 3998 | 94cc7cad3d2d |
child 4132 | 440d383367eb |
--- 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