python - be: Improve bytea accessors.

Поиск
Список
Период
Сортировка
От jwp@pgfoundry.org (James William Pye)
Тема python - be: Improve bytea accessors.
Дата
Msg-id 20051201192646.0A96B112500B@pgfoundry.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Improve bytea accessors.

Primarily, do not assume the Datum is not toasted. Use byteaoctetlen for length
and DatumGetByteaPSlice() for slicing.

(str() should probably return a raw string of the bytea instead of the typoutput
as slicing now returns byteas instead Python StringType. do later, tho)

Modified Files:
--------------
    be/src/type:
        bitwise.c (r1.6 -> r1.7)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/type/bitwise.c.diff?r1=1.6&r2=1.7)

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

Предыдущее
От: neilc@postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Fix typo in PL/PgSQL documentation, per Chris KL.
Следующее
От: momjian@postgresql.org (Bruce Momjian)
Дата:
Сообщение: pgsql: Add comments about why errno is set to zero.