(pgconn)
| 75 | |
| 76 | @pytest.mark.libpq(">= 14") |
| 77 | def test_flush_request(pgconn): |
| 78 | assert pgconn.pipeline_status == pq.PipelineStatus.OFF |
| 79 | pgconn.enter_pipeline_mode() |
| 80 | pgconn.send_query_params(b"select $1", [b"1"], param_types=[25]) |
| 81 | pgconn.send_flush_request() |
| 82 | r = pgconn.get_result() |
| 83 | assert r.status == pq.ExecStatus.TUPLES_OK |
| 84 | assert r.get_value(0, 0) == b"1" |
| 85 | pgconn.exit_pipeline_mode() |
| 86 | |
| 87 | |
| 88 | @pytest.fixture |
nothing calls this directly
no test coverage detected