]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Fix prepared statements clearing
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 14 Dec 2021 23:57:11 +0000 (00:57 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 15 Dec 2021 00:26:51 +0000 (01:26 +0100)
commita714448def03e21f26b0d41902a0304d3877a1d1
treec9867e9c53e503ad1ff93a9570536a071363c339
parent5e59edac67fdc3e2d34adfd2a87f50f8f11244f1
Fix prepared statements clearing

In the conditions illustrated by the test, i.e. with some statements
already prepared and a multiple statements query containing a DROP, the
check for multiple statements wouldn't have been triggered, and the
query would have eventually been asked for preparation, failing because
containing multiple statements.
psycopg/psycopg/_preparing.py
tests/test_prepared.py