(self)
| 7984 | ) |
| 7985 | |
| 7986 | def test_insert_from_select(self): |
| 7987 | astring = Column("a", String) |
| 7988 | aint = Column("a", Integer) |
| 7989 | m = MetaData() |
| 7990 | Table("t1", m, astring) |
| 7991 | t2 = Table("t2", m, aint) |
| 7992 | |
| 7993 | stmt = t2.insert().from_select(["a"], select(astring)).returning(aint) |
| 7994 | comp = stmt.compile(dialect=postgresql.dialect()) |
| 7995 | eq_( |
| 7996 | comp._create_result_map(), |
| 7997 | {"a": ("a", (aint, "a", "a", "t2_a"), aint.type, 0)}, |
| 7998 | ) |
| 7999 | |
| 8000 | def test_nested_api(self): |
| 8001 | from sqlalchemy.engine.cursor import CursorResultMetaData |
nothing calls this directly
no test coverage detected