Re: Calling 'c' function from PostGreSQL

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Calling 'c' function from PostGreSQL
Дата
Msg-id
4432.987179744@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Calling 'c' function from PostGreSQL "Atul" <atulk@newgen.co.in>
Re: Calling 'c' function from PostGreSQL Nabil Sayegh <evolution@sayegh.de>
Re: Calling 'c' function from PostGreSQL Tom Lane <tgl@sss.pgh.pa.us>
"Atul"  writes:
> text* myfunc()
> {
>  text* ch;
>  *ch = '1,2';
>  return ch;
> }

You can't create a text object that way.  Read some of the text-mashing
functions in the existing backend code for examples of creating a text
value correctly.  (And pay more attention to the complaints that your
C compiler undoubtedly gave you...)

			regards, tom lane
В списке pgsql-novice по дате отправления
От: Pete Jewell
Дата:
Сообщение: Re: What is it?
От: Tom Lane
Дата:
FAQ