Commit 877ef41f authored by Yusei Tahara's avatar Yusei Tahara

It is not obvious that there is the same name column is in table somewhere.

because column_set is extended.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25734 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a9542e80
......@@ -1739,7 +1739,7 @@ class Catalog(Folder,
LOG('SQLCatalog', 100, 'Malformed related key definition: %r. Ignored.' % (entire_definition, ))
continue
related_key_id = split_entire_definition[0].strip()
if related_key_id in column_set:
if related_key_id in column_set and related_key_id in column_map:
LOG('SQLCatalog', 100, 'Related key %r has the same name as an existing column on tables %r' % (related_key_id, column_map[related_key_id]))
column_set.add(related_key_id)
return column_set
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment