]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Drop connection.set_client_encoding
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 14 May 2021 21:11:50 +0000 (23:11 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 26 Sep 2021 22:08:43 +0000 (00:08 +0200)
commitab54ad1ac7e915f12822ea926310784032128dac
treeef69a95ad7682d62c40c8acbccdb06d6f1637cf8
parentaf78a42b4bbc1dfa82bbb92cd84e40aeb324fc4f
Drop connection.set_client_encoding

The property might have been super useful in pre-unicode times, but now
it is really an implementation detail.

The connection encoding can be still changed setting the GUC or with a
PGOPTION or option in the connection params.
12 files changed:
docs/api/connections.rst
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
tests/test_connection.py
tests/test_connection_async.py
tests/test_copy.py
tests/test_copy_async.py
tests/test_cursor.py
tests/test_cursor_async.py
tests/test_errors.py
tests/test_sql.py
tests/types/test_string.py