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

Function test_query_params_executemany

tests/test_cursor_client.py:72–77  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

70
71
72def test_query_params_executemany(conn):
73 cur = conn.cursor()
74
75 cur.executemany("select %t, %t", [[1, 2], [3, 4]])
76 assert cur._query.query == b"select 3, 4"
77 assert cur._query.params == (b"3", b"4")
78
79
80@pytest.mark.slow

Callers

nothing calls this directly

Calls 2

cursorMethod · 0.45
executemanyMethod · 0.45

Tested by

no test coverage detected