(self)
| 7946 | ) |
| 7947 | |
| 7948 | def test_label_conflict_union(self): |
| 7949 | t1 = Table( |
| 7950 | "t1", MetaData(), Column("a", Integer), Column("b", Integer) |
| 7951 | ) |
| 7952 | t2 = Table("t2", MetaData(), Column("t1_a", Integer)) |
| 7953 | union = select(t2).union(select(t2)).alias() |
| 7954 | |
| 7955 | t1_alias = t1.alias() |
| 7956 | stmt = ( |
| 7957 | select(t1, t1_alias) |
| 7958 | .select_from(t1.join(union, t1.c.a == union.c.t1_a)) |
| 7959 | .set_label_style(LABEL_STYLE_TABLENAME_PLUS_COL) |
| 7960 | ) |
| 7961 | comp = stmt.compile() |
| 7962 | eq_( |
| 7963 | set(comp._create_result_map()), |
| 7964 | {"t1_1_b", "t1_1_a", "t1_a", "t1_b"}, |
| 7965 | ) |
| 7966 | is_(comp._create_result_map()["t1_a"][1][2], t1.c.a) |
| 7967 | |
| 7968 | def test_insert_with_select_values(self): |
| 7969 | astring = Column("a", String) |
nothing calls this directly
no test coverage detected