From 856517eb2fd113a8e1e3463818fb465e71f58426 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Fri, 23 Dec 2016 07:18:51 +0100
Subject: [PATCH] ZSQLCatalog: Reject empty mapping.

Facilitates pinpointing faulty related key declarations.
---
 product/ZSQLCatalog/ColumnMap.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/product/ZSQLCatalog/ColumnMap.py b/product/ZSQLCatalog/ColumnMap.py
index bc789406ad..5d020375d7 100644
--- a/product/ZSQLCatalog/ColumnMap.py
+++ b/product/ZSQLCatalog/ColumnMap.py
@@ -505,6 +505,8 @@ class ColumnMap(object):
     assert group in self.registry, (group, self.registry)
     assert column in self.registry[group], (column, group,
       self.registry[group])
+    assert table_name
+    assert column
     column_map_key = (group, column)
     column_map = self.column_map
     assert (group, table_name) in self.table_alias_dict, (group, table_name,
-- 
2.30.9