Commit 856517eb authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog: Reject empty mapping.

Facilitates pinpointing faulty related key declarations.
parent 103d58f3
...@@ -505,6 +505,8 @@ class ColumnMap(object): ...@@ -505,6 +505,8 @@ class ColumnMap(object):
assert group in self.registry, (group, self.registry) assert group in self.registry, (group, self.registry)
assert column in self.registry[group], (column, group, assert column in self.registry[group], (column, group,
self.registry[group]) self.registry[group])
assert table_name
assert column
column_map_key = (group, column) column_map_key = (group, column)
column_map = self.column_map column_map = self.column_map
assert (group, table_name) in self.table_alias_dict, (group, table_name, assert (group, table_name) in self.table_alias_dict, (group, table_name,
......
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