bug in handling Postgres bytea type?
bug in handling Postgres bytea type?
От:
Christopher Bader <cbader@zscaler.com>
Дата:
I'm having problems reading bytea fields with psycopg2.
Reading a bytea field with cursor.fetchall yields a memoryview object, not a bytes or bytearray object, and even when the object is explicitly converted to bytes or bytearray, the result is not correct.
Christopher Bader
Staff Data Scientist
Zscaler
Re: bug in handling Postgres bytea type?
От:
Daniele Varrazzo <daniele.varrazzo@gmail.com>
Дата:
On Fri, 23 Dec 2022 at 02:54, Christopher Bader <cbader@zscaler.com> wrote:
I'm having problems reading bytea fields with psycopg2.Reading a bytea field with cursor.fetchall yields a memoryview object, not a bytes or bytearray object, and even when the object is explicitly converted to bytes or bytearray, the result is not correct.
Define not correct.