(self)
| 7778 | ) |
| 7779 | |
| 7780 | def test_insert_from_select(self): |
| 7781 | astring = Column("a", String) |
| 7782 | aint = Column("a", Integer) |
| 7783 | m = MetaData() |
| 7784 | Table("t1", m, astring) |
| 7785 | t2 = Table("t2", m, aint) |
| 7786 | |
| 7787 | stmt = t2.insert().from_select(["a"], select(astring)).returning(aint) |
| 7788 | comp = stmt.compile(dialect=postgresql.dialect()) |
| 7789 | eq_( |
| 7790 | comp._create_result_map(), |
| 7791 | {"a": ("a", (aint, "a", "a", "t2_a"), aint.type, 0)}, |
| 7792 | ) |
| 7793 | |
| 7794 | def test_nested_api(self): |
| 7795 | from sqlalchemy.engine.cursor import CursorResultMetaData |
nothing calls this directly
no test coverage detected