Re: Function that returns Boolean

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function that returns Boolean
Дата
Msg-id 15329.1235411340@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Function that returns Boolean  (SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com>)
Список pgsql-general
SHARMILA JOTHIRAJAH <sharmi_jo@yahoo.com> writes:
> create or replace function check_value( newValue IN VARCHAR,
>                     oldValue IN VARCHAR ) RETURN BOOLEAN

Should be RETURNS BOOLEAN.

You might want to fix whatever client code you are using so that it
shows the error cursor, which would certainly have helped direct
your attention to the right place instead of the wrong one.  What
I see in psql is

ERROR:  syntax error at or near "RETURN"
LINE 2:                     oldValue IN VARCHAR ) RETURN BOOLEAN
                                                  ^


            regards, tom lane

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

Предыдущее
От: SHARMILA JOTHIRAJAH
Дата:
Сообщение: Re: Function that returns Boolean
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Function that returns Boolean