MCPcopy
hub / github.com/psycopg/psycopg / test_query_params_executemany

Function test_query_params_executemany

tests/test_cursor_raw.py:66–71  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

64
65
66def test_query_params_executemany(conn):
67 cur = conn.cursor()
68
69 cur.executemany("select $1, $2", [[1, 2], [3, 4]])
70 assert cur._query.query == b"select $1, $2"
71 assert cur._query.params == [b"\x00\x03", b"\x00\x04"]
72
73
74@pytest.mark.slow

Callers

nothing calls this directly

Calls 2

cursorMethod · 0.45
executemanyMethod · 0.45

Tested by

no test coverage detected