Fixed an issue where conversion of bytea to the binary string results in an error. Fixes #5567

This commit is contained in:
Yogesh Mahajan
2020-08-11 15:31:14 +05:30
committed by Akshay Joshi
parent 8129df42da
commit 1f70385a4e
2 changed files with 2 additions and 1 deletions

View File

@@ -403,7 +403,7 @@ class Connection(BaseConnection):
cur,
"SET DateStyle=ISO; "
"SET client_min_messages=notice; "
"SELECT set_config('bytea_output','escape',false) FROM pg_settings"
"SELECT set_config('bytea_output','hex',false) FROM pg_settings"
" WHERE name = 'bytea_output'; "
"SET client_encoding='{0}';".format(postgres_encoding)
)