]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Handle pipeline-mode errors when checking results
authorDenis Laxalde <denis.laxalde@dalibo.com>
Mon, 11 Oct 2021 15:16:39 +0000 (17:16 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 2 Apr 2022 23:17:57 +0000 (01:17 +0200)
commit05e1819f2a7d8341b4a86b8a9eec74954a21740d
treed03461c960ec52505608df73122f3c9916f9a025
parenta406ffa3809bb2ee930700073ebbad7e727c8c54
Handle pipeline-mode errors when checking results

In BaseCursor._check_result(), we now handle FATAL_ERROR and (the
pipeline-mode specific error) PIPELINE_ABORTED in preparation for
supporting the pipeline mode where we'd check results upon fetch*()
instead of upon execute() currently.

Similarly, BaseCursor._raise_for_result() handles PIPELINE_ABORTED
result status.
psycopg/psycopg/cursor.py