MCPcopy
hub / github.com/MagicStack/asyncpg / test_table_as_composite

Method test_table_as_composite

tests/test_codecs.py:1637–1653  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1635 ''')
1636
1637 async def test_table_as_composite(self):
1638 await self.con.execute('''
1639 CREATE TABLE tab (a text, b int);
1640 INSERT INTO tab VALUES ('1', 1);
1641 ''')
1642
1643 try:
1644 r = await self.con.fetchrow('''
1645 SELECT tab FROM tab
1646 ''')
1647
1648 self.assertEqual(r, (('1', 1),))
1649
1650 finally:
1651 await self.con.execute('''
1652 DROP TABLE tab;
1653 ''')
1654
1655 async def test_relacl_array_type(self):
1656 await self.con.execute(r'''

Callers

nothing calls this directly

Calls 2

executeMethod · 0.45
fetchrowMethod · 0.45

Tested by

no test coverage detected