

@testing.requires.parens_in_union_contained_select_w_limit_offset
def test_limit_offset_in_unions_from_alias(self):
    table = self.tables.some_table
    s1 = select([table]).where((table.c.id == 2)).limit(1).order_by(table.c.id)
    s2 = select([table]).where((s1.c.id == 3)).limit(1).order_by(table.c.id)
    u1 = union(s1, s2).alias()
    self._assert_result(u1.select().limit(2).order_by(u1.c.id), [(2, 2, 3), (3, 3, 4)])

dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/testing/suite/test_select.py CompoundSelectTest.test_limit_offset_in_unions_from_alias/VarMisuse@73/92 `table`->`s1`