Commits

Kirill Simonov  committed edb537c

Disallow an empty selector.

  • Participants
  • Parent commits 16f7a6d

Comments (0)

Files changed (1)

File src/htsql/tr/bind.py

                 raise BindError("invalid element type", element.mark)
             element = CastBinding(element, domain, element.syntax)
             elements.append(element)
+        # Currently we disallow an empty selector.
+        if not elements:
+            raise BindError("empty selector", self.syntax.mark)
         # Generate a segment binding.
         yield SegmentBinding(base, elements, self.syntax)