code in docs gives me an error

Поиск
Список
Период
Сортировка
От Hicham G. Elmongui
Тема code in docs gives me an error
Дата
Msg-id cl39v8$l2r$1@news.hub.org
обсуждение исходный текст
Ответы Re: code in docs gives me an error  (Devrim GUNDUZ <devrim@gunduz.org>)
Re: code in docs gives me an error  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi
I tried creating the function (from sec 19.3.1). But it gives me the
following error: "ERROR:  type tablename does not exist".
Any ideas of what i might be doing wrong?

CREATE FUNCTION use_many_fields(tablename) RETURNS TEXT AS '
DECLARE
    in_t ALIAS FOR $1;
BEGIN
    RETURN in_t.f1 || in_t.f3 || in_t.f5 || in_t.f7;
END;
' LANGUAGE 'plpgsql';




Thanks,
--Hicham




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: About upper() and lower to handle multibyte char
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: code in docs gives me an error