Commits

Kirill Simonov committed 5d7156f

Fixed a problem with environment when an identity value is `null`.

Comments (0)

Files changed (1)

src/htsql/core/tr/bind.py

     if environment is not None:
         for name in sorted(environment):
             value = environment[name]
-            if isinstance(value.domain, ListDomain):
+            if value.data is None:
+                recipe = LiteralRecipe(value.data, value.domain)
+            elif isinstance(value.domain, ListDomain):
                 item_recipes = [LiteralRecipe(item,
                                               value.domain.item_domain)
                                 for item in value.data]