MCPcopy
hub / github.com/psycopg/psycopg / test_execute_nextset

Function test_execute_nextset

tests/test_pipeline.py:601–609  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

599
600
601def test_execute_nextset(conn):
602 cur = conn.cursor()
603 with conn.pipeline():
604 cur.execute("select 1")
605 cur.execute("select 2")
606
607 assert cur.fetchall() == [(2,)]
608 assert not cur.nextset()
609 assert cur.fetchall() == []

Callers

nothing calls this directly

Calls 5

nextsetMethod · 0.80
cursorMethod · 0.45
pipelineMethod · 0.45
executeMethod · 0.45
fetchallMethod · 0.45

Tested by

no test coverage detected