preventing duplicated fields in projection
git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@4 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
parent
1efc1dc3c7
commit
82e551cce4
@ -81,6 +81,13 @@ class relation (object):
|
||||
if fields[0].__class__ == list().__class__:
|
||||
fields=fields[0]
|
||||
|
||||
#Avoiding duplicated fields
|
||||
fields1=[]
|
||||
for i in fields:
|
||||
if i not in fields1:
|
||||
fields1.append(i)
|
||||
fields=fields1
|
||||
|
||||
ids=self.header.getFieldsId(fields)
|
||||
|
||||
if len(ids)==0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user