equal
deleted
inserted
replaced
858 newname) |
858 newname) |
859 if attrs is None: |
859 if attrs is None: |
860 attrs = ','.join(SQL_PREFIX + rschema.type |
860 attrs = ','.join(SQL_PREFIX + rschema.type |
861 for rschema in schema[newname].subject_relations() |
861 for rschema in schema[newname].subject_relations() |
862 if (rschema.final or rschema.inlined) |
862 if (rschema.final or rschema.inlined) |
863 and rschema in schema[oldname].subjrels |
|
864 and not rschema in PURE_VIRTUAL_RTYPES) |
863 and not rschema in PURE_VIRTUAL_RTYPES) |
865 else: |
864 else: |
866 attrs += ('eid', 'creation_date', 'modification_date', 'cwuri') |
865 attrs += ('eid', 'creation_date', 'modification_date', 'cwuri') |
867 attrs = ','.join(SQL_PREFIX + attr for attr in attrs) |
866 attrs = ','.join(SQL_PREFIX + attr for attr in attrs) |
868 self.sqlexec('INSERT INTO %s%s(%s) SELECT %s FROM %s%s' % ( |
867 self.sqlexec('INSERT INTO %s%s(%s) SELECT %s FROM %s%s' % ( |