bug in handling Postgres bytea type?

From: Christopher Bader <cbader(at)zscaler(dot)com>
To: psycopg(at)lists(dot)postgresql(dot)org
Subject: bug in handling Postgres bytea type?
Date: 2022-12-23 02:53:43
Message-ID: CAKvpR7Od=NU2yi=sOf5wiaKU1A+v_T2GJ8+JDdzE1yABFPwyYA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

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

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2022-12-23 02:58:21 Re: bug in handling Postgres bytea type?
Previous Message Brian M Hamlin 2022-11-23 20:18:43 Re: Parquet support