Commits

Kirill Simonov committed 228f54b

Added a hack to allow passing record values between commands.

Comments (0)

Files changed (1)

src/htsql/core/tr/bind.py

                                                   value.domain.item_domain)
                                     for item in value.data]
                     recipe = SelectionRecipe(item_recipes)
+                elif isinstance(value.domain, RecordDomain):
+                    item_recipes = [LiteralRecipe(item, profile.domain)
+                                    for item, profile in
+                                        zip(value.data, value.domain.fields)]
+                    recipe = SelectionRecipe(item_recipes)
                 elif isinstance(value.domain, IdentityDomain):
                     def convert(domain, data):
                         items = []