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>)
Список pgsql-novice
"Atul" <atulk@newgen.co.in> 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
Дата:
Сообщение: Re: Buggy SELEC ... FROM UPDATE ?