Re: pgtcl large object read/write corrupts binary data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgtcl large object read/write corrupts binary data
Дата
Msg-id 4529.1067559606@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgtcl large object read/write corrupts binary data  (ljb <ljb220@mindspring.com>)
Список pgsql-bugs
ljb <ljb220@mindspring.com> writes:
> [Using PostgreSQL-7.3.4 and -7.4beta5, Tcl-8.4.x.]
> Binary data written to a Large Object with libpgtcl's pg_lo_write is
> corrupted.  Tcl is mangling the data - something to do with UTF-8
> conversion.  Example: 0x80 becomes 0xc2 0x80, and 0xff becomes 0xc3 0xbf.

Patch applied to 7.4, along with a further fix to handle a negative return
value from lo_read properly.  Thanks for the report and patch!

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: minor: ~ not resolved in psql
Следующее
От: Francisco Olarte Sanz
Дата:
Сообщение: Re: minor: ~ not resolved in psql