Re: View and function

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: View and function
Дата
Msg-id Pine.BSF.4.21.0104171138160.77539-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на View and function  (DaVinci <bombadil@wanadoo.es>)
Список pgsql-general
> create function pilpot(calle) returns integer as '
> declare
>     c alias for $1;
>     n integer;
> begin
>     insert into v_direcci�n(calle) values (c);
>     get diagnostics n = result_oid;
>     return n;
> end;
> ' language 'plpgsql';
>
> ------------------------------------------------------------------
>
>  I get an error when creating function of type:
>
>      ERROR:  ProcedureCreate: arg type 'calle' is not defined

calle is a field name right?  It's probably complaining at
pilpot(calle) since calle in that case is supposed to be a
type name.


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

Предыдущее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: gzip and bzip2 (distributing postgresql)
Следующее
От: Kevin L
Дата:
Сообщение: how to change table owner?