(self)
| 7894 | """ |
| 7895 | |
| 7896 | def test_compound_populates(self): |
| 7897 | t = Table("t", MetaData(), Column("a", Integer), Column("b", Integer)) |
| 7898 | stmt = select(t).union(select(t)) |
| 7899 | comp = stmt.compile() |
| 7900 | eq_( |
| 7901 | comp._create_result_map(), |
| 7902 | { |
| 7903 | "a": ("a", (t.c.a, "a", "a", "t_a"), t.c.a.type, 0), |
| 7904 | "b": ("b", (t.c.b, "b", "b", "t_b"), t.c.b.type, 1), |
| 7905 | }, |
| 7906 | ) |
| 7907 | |
| 7908 | def test_compound_not_toplevel_doesnt_populate(self): |
| 7909 | t = Table("t", MetaData(), Column("a", Integer), Column("b", Integer)) |