(self)
| 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) |
| 7970 | aint = Column("a", Integer) |
| 7971 | m = MetaData() |
| 7972 | Table("t1", m, astring) |
| 7973 | t2 = Table("t2", m, aint) |
| 7974 | |
| 7975 | stmt = ( |
| 7976 | t2.insert() |
| 7977 | .values(a=select(astring).scalar_subquery()) |
| 7978 | .returning(aint) |
| 7979 | ) |
| 7980 | comp = stmt.compile(dialect=postgresql.dialect()) |
| 7981 | eq_( |
| 7982 | comp._create_result_map(), |
| 7983 | {"a": ("a", (aint, "a", "a", "t2_a"), aint.type, 0)}, |
| 7984 | ) |
| 7985 | |
| 7986 | def test_insert_from_select(self): |
| 7987 | astring = Column("a", String) |
nothing calls this directly
no test coverage detected