Re: Returning a char from a C-language function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Returning a char from a C-language function
Дата
Msg-id 15848.1271884096@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Returning a char from a C-language function  ("I. B." <i.bre@live.com>)
Список pgsql-general
"I. B." <i.bre@live.com> writes:
> I have a small problem when trying to make a C-language function to return one character. The code is very simple and
that'swhat's making it so strange. 

> CREATE FUNCTION val(ibool)
>      RETURNS char

You need to write "char", with the quotes.  Without the quotes the type
name is taken as CHARACTER(1), ie what's internally called BpChar.
Totally different animal.

            regards, tom lane

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

Предыдущее
От: "Mark Watson"
Дата:
Сообщение: Re: Avoiding surrogate keys
Следующее
От: Thom Brown
Дата:
Сообщение: Listing tables in all schemas in psql