]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: define Escaping method as returning bytes
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 3 Nov 2022 23:53:20 +0000 (00:53 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 4 Nov 2022 14:05:43 +0000 (15:05 +0100)
commitb290b2e4ab82a4de28849b85da4b6f10c393ff67
tree9dbff530222355086da4fffafc45436030d9aee6
parentf77c4dcfb5f3051197b8453711d643b3770198ac
fix: define Escaping method as returning bytes

This change is backward compatible because bytes has a superset of the
memoryview interface and, in Python, to make pretty much any use of it,
it must be converted to bytes beforehand.

Close #422.
docs/news.rst
psycopg/psycopg/pq/abc.py
psycopg/psycopg/pq/pq_ctypes.py
psycopg_c/psycopg_c/pq/escaping.pyx