Re: bug in handling Postgres bytea type?

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: bug in handling Postgres bytea type?
Дата
Msg-id CA+mi_8a8mixwEsxaNhpeEOmrH1_Xc2vqCU=uEz0M-RSC8pfo1w@mail.gmail.com
обсуждение исходный текст
Ответ на bug in handling Postgres bytea type?  (Christopher Bader <cbader@zscaler.com>)
Список psycopg

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.

В списке psycopg по дате отправления:

Предыдущее
От: Christopher Bader
Дата:
Сообщение: bug in handling Postgres bytea type?
Следующее
От: Samuel Marks
Дата:
Сообщение: Escape Python to `json[]` for `COPY FROM` PostgreSQL insertion?