Re: parse error when calling function in plpgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: parse error when calling function in plpgsql
Дата
Msg-id 7882.1047930513@sss.pgh.pa.us
обсуждение исходный текст
Ответ на parse error when calling function in plpgsql  ("David Witham" <davidw@unidial.com.au>)
Список pgsql-sql
"David Witham" <davidw@unidial.com.au> writes:
>     myrec record;
> ...
> select * into myrec from myfunc(...params...) as (col1 real,col2 integer);

> but I keep getting a parse error:

> WARNING:  Error occurred while executing PL/pgSQL function myparentfunc
> WARNING:  line 27 at select into variables
> ERROR:  parser: parse error at or near "$1" at character 72

I doubt this has anything to do with the function per se.  I'd check for
a conflict between the names you are using as plpgsql variables and the
names mentioned in this SELECT.
        regards, tom lane


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

Предыдущее
От: Tomasz Myrta
Дата:
Сообщение: Re: Howto??
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: btree_gist, gint4_union