Re: Fault when return strings over 256 characters in PLpgSQL

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Fault when return strings over 256 characters in PLpgSQL
Дата
Msg-id 422EE464.8060804@samurai.com
обсуждение исходный текст
Ответ на Fault when return strings over 256 characters in PLpgSQL function  (cathy.hemsley@powerconv.alstom.com)
Ответы R: Fault when return strings over 256 characters in PLpgSQL  ("Burn !" <ml@i3fighters.com>)
Список pgsql-bugs
cathy.hemsley@powerconv.alstom.com wrote:
> I have a PLpgSQL function that returns a string (varchar):  if this string
> is over 256 characters long then the last three characters are corrupted:
> replaced by the string ' (.'

I'm skeptical: there is nothing special about 256 characters as far as
the varchar implementation is concerned, nor is the string ' (.' of any
significance.

Running your function (albeit on Linux) yields:

neilc=# select testconverttousername();

                                                 testconverttousername



--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567812345678123456781234567888
(1 row)

i.e. what one would expect.

-Neil

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

Предыдущее
От: cathy.hemsley@powerconv.alstom.com
Дата:
Сообщение: Fault when return strings over 256 characters in PLpgSQL function
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: [pgsql-bugs] Daily digest v1.1387 (8 messages)