diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index 5a98caebed981d0f81bc1f0f13e5731540ae571f..4f1f562f155d16d44f45120743cd67b75ba0b4d3 100755 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -603,6 +603,10 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base): for field in field_list: keys[field] = 1 keys['%s.%s' % (table, field)] = 1 # Is this inconsistent ? + for related in self.sql_catalog_related_keys: + related_tuple = related.split('|') + related_key = related_tuple[0].strip() + keys[related_key] = 1 keys = keys.keys() keys.sort() return keys