Commits

Kirill Simonov committed 88114b7

Typo in `ReduceOr` and `ReduceAnd`.

  • Participants
  • Parent commits 0e874d5

Comments (0)

Files changed (1)

File src/htsql/core/tr/reduce.py

                         rops.append(op.rop)
                         duplicates.add(op.rop)
                 elif isformula(op, IsInSig):
-                    for rop in ops.rops:
+                    for rop in op.rops:
                         if rop not in duplicates:
-                            rops.append(op.rop)
-                            duplicates.add(op.rop)
+                            rops.append(rop)
+                            duplicates.add(rop)
             if len(rops) > 1:
                 is_nullable = (lop.is_nullable or any(rop.is_nullable
                                                       for rop in rops))
                         rops.append(op.rop)
                         duplicates.add(op.rop)
                 elif isformula(op, IsInSig):
-                    for rop in ops.rops:
+                    for rop in op.rops:
                         if rop not in duplicates:
-                            rops.append(op.rop)
-                            duplicates.add(op.rop)
+                            rops.append(rop)
+                            duplicates.add(rop)
             if len(rops) > 1:
                 is_nullable = (lop.is_nullable or any(rop.is_nullable
                                                       for rop in rops))