fixed error in rename operator, it didn't a full copy of the relation so update on the original relation would modify results of renamed ones

git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@114 014f5005-505e-4b48-8d0a-63407b615a7c
master
LtWorf 2009-03-19 12:54:49 +07:00
parent 0d191ab959
commit 720d888c22
1 changed files with 3 additions and 1 deletions

@ -189,7 +189,9 @@ class relation (object):
if (newt.header.rename(old,new)) == False: if (newt.header.rename(old,new)) == False:
return None return None
newt.content=list(self.content) newt.content=[]
for i in self.content:
newt.content.append(list(i))
return newt return newt
def intersection(self,other): def intersection(self,other):