Commits

Kirill Simonov committed 330cf27

Fixed `Localize` implementation for the case when PRIMARY KEY does not exist.

Comments (0)

Files changed (1)

src/htsql/core/classify.py

                 arcs.add(arc)
         table = self.node.table
         for key in [table.primary_key]+table.unique_keys:
+            if key is None:
+                continue
             if key.is_partial:
                 continue
             if not all(not column.is_nullable for column in key.origin_columns):