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

Function test_execute_binary

tests/test_connection.py:618–622  ·  tests/test_connection.py::test_execute_binary
(conn)

Source from the content-addressed store, hash-verified

616
617
618def test_execute_binary(conn):
619 cur = conn.execute(class="st">"select %s, %s", [10, 20], binary=True)
620 assert cur.fetchone() == (10, 20)
621 assert cur.format == 1
622 assert cur.pgresult.fformat(0) == 1
623
624
625def test_row_factory(conn_cls, dsn):

Callers

nothing calls this directly

Calls 3

executeMethod · 0.45
fetchoneMethod · 0.45
fformatMethod · 0.45

Tested by

no test coverage detected