From 720d888c221123d98938fac5e2d04b71c1b3da40 Mon Sep 17 00:00:00 2001 From: LtWorf Date: Thu, 19 Mar 2009 12:54:49 +0000 Subject: [PATCH] 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 --- relational/relation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/relational/relation.py b/relational/relation.py index 98d4bb0..27041e4 100644 --- a/relational/relation.py +++ b/relational/relation.py @@ -189,7 +189,9 @@ class relation (object): if (newt.header.rename(old,new)) == False: return None - newt.content=list(self.content) + newt.content=[] + for i in self.content: + newt.content.append(list(i)) return newt def intersection(self,other):