public inbox for [email protected]  
help / color / mirror / Atom feed
From: Christopher Bader <[email protected]>
To: [email protected]
Subject: bug in handling Postgres bytea type?
Date: Thu, 22 Dec 2022 21:53:43 -0500
Message-ID: <CAKvpR7Od=NU2yi=sOf5wiaKU1A+v_T2GJ8+JDdzE1yABFPwyYA@mail.gmail.com> (raw)

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


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: bug in handling Postgres bytea type?
  In-Reply-To: <CAKvpR7Od=NU2yi=sOf5wiaKU1A+v_T2GJ8+JDdzE1yABFPwyYA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox