Re: Assigning a return value from a function to a variable.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Assigning a return value from a function to a variable.
Дата
Msg-id 15270.1089948931@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Assigning a return value from a function to a variable.  (Betsy Barker <betsy.barker@supportservicesinc.com>)
Ответы Re: Assigning a return value from a function to a  (Betsy Barker <betsy.barker@supportservicesinc.com>)
Список pgsql-novice
Betsy Barker <betsy.barker@supportservicesinc.com> writes:
> The error is:
> Error occurred while executing PL/pgSQL function calc_facilities
> WARNING:  line 166 at assignment
> ERROR:  syntax error at or near ";"

Offhand this sounds like a pretty simple syntactic error --- like one
too many semicolon, or one too few --- but there's no chance of
diagnosing it from the info you've given us.  Could you send along the
exact text of your plpgsql function for maybe 10 lines around line 166
(and be sure to mark exactly which line is 166 down from the function
body start)?

FWIW, we're aware that plpgsql's syntactic error messages could use
work, and I think that 7.5 will do at least a bit better in this area.
But for the moment, you need to give more info to make it clear what
is going wrong.

            regards, tom lane

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

Предыдущее
От: Julian Leyh
Дата:
Сообщение: Re: postgres account default password
Следующее
От: Yves
Дата:
Сообщение: Re: postgres account default password