(aconn)
| 608 | |
| 609 | |
| 610 | async def test_execute(aconn): |
| 611 | cur = await aconn.execute("select %s, %s", [10, 20]) |
| 612 | assert await cur.fetchone() == (10, 20) |
| 613 | assert cur.format == 0 |
| 614 | assert cur.pgresult.fformat(0) == 0 |
| 615 | |
| 616 | cur = await aconn.execute("select %(a)s, %(b)s", {"a": 11, "b": 21}) |
| 617 | assert await cur.fetchone() == (11, 21) |
| 618 | |
| 619 | cur = await aconn.execute("select 12, 22") |
| 620 | assert await cur.fetchone() == (12, 22) |
| 621 | |
| 622 | |
| 623 | async def test_execute_binary(aconn): |