]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Rework PGconn.pipeline_status 100/head
authorDenis Laxalde <denis@laxalde.org>
Sun, 10 Oct 2021 09:27:13 +0000 (11:27 +0200)
committerDenis Laxalde <denis@laxalde.org>
Sun, 10 Oct 2021 09:28:47 +0000 (11:28 +0200)
commit99150743c9c13e621a0417f43780587040ee4e50
tree9bc5e58332a9edf450d619d4da0b62b1f07545e9
parent875abc7b2776574481da8fd1d4654bb05cd9196e
Rework PGconn.pipeline_status

We make this method a property, that returns an integer value, as do
other similar properties/methods on PGconn.

Then, for libpq version older than 14.0, we make this property always
return 0 (PQ_PIPELINE_OFF).
psycopg/psycopg/pq/abc.py
psycopg/psycopg/pq/pq_ctypes.py
psycopg_c/psycopg_c/pq/pgconn.pyx
tests/pq/test_pipeline.py