changeset 9820 | 3ad221fe04aa |
parent 9780 | 8e687be43d84 |
child 10087 | ed0b076c119b |
child 10180 | ea10572fccfe |
--- a/rset.py Wed Jun 11 10:16:13 2014 +0200 +++ b/rset.py Thu Apr 03 19:56:05 2014 +0200 @@ -541,7 +541,8 @@ else: attr_cols[attr] = i else: - rdef = eschema.rdef(attr, role) + # XXX takefirst=True to remove warning triggered by ambiguous relations + rdef = eschema.rdef(attr, role, takefirst=True) # only keep value if it can't be multivalued if rdef.role_cardinality(role) in '1?': rel_cols[(attr, role)] = i