MCPcopy
hub / github.com/psycopg/psycopg / test_execute_binary

Function test_execute_binary

tests/test_connection_async.py:623–627  ·  view source on GitHub ↗
(aconn)

Source from the content-addressed store, hash-verified

621
622
623async def test_execute_binary(aconn):
624 cur = await aconn.execute("select %s, %s", [10, 20], binary=True)
625 assert await cur.fetchone() == (10, 20)
626 assert cur.format == 1
627 assert cur.pgresult.fformat(0) == 1
628
629
630async def test_row_factory(aconn_cls, dsn):

Callers

nothing calls this directly

Calls 3

executeMethod · 0.45
fetchoneMethod · 0.45
fformatMethod · 0.45

Tested by

no test coverage detected