author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 18 Aug 2009 09:12:52 +0200 | |
changeset 2899 | 3f7ce804d1e5 |
parent 2898 | a485d80b8fcb |
child 2900 | 9d65e0350aa1 |
--- a/hooks/syncschema.py Tue Aug 18 09:12:08 2009 +0200 +++ b/hooks/syncschema.py Tue Aug 18 09:12:52 2009 +0200 @@ -934,6 +934,7 @@ session.execute('DELETE X %s Y WHERE X is %s, Y is %s' % (rschema, subjschema, objschema)) execute = session.unsafe_execute + rteid = self.eidto rset = execute('Any COUNT(X) WHERE X is %s, X relation_type R,' 'R eid %%(x)s' % rdeftype, {'x': rteid}) lastrel = rset[0][0] == 0