Re: plpgsql FOUND Variable

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpgsql FOUND Variable
Дата
Msg-id 16011.1062041139@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plpgsql FOUND Variable  (Alex <alex@meerkatsoft.com>)
Список pgsql-general
Alex <alex@meerkatsoft.com> writes:
> SELECT INTO _tmpRec * FROM address WHERE name = _name AND status = ''1''
> AND last_name NOTNULL
> IF FOUND THEN
>   RETURN ''found'';
> ELSE ....

> Above Query does not produce any results.

The above query produces a syntax error, because you're missing a
semicolon after the SELECT INTO.  If you want help with this, you'll
need to offer an exact example rather than an approximation.

I have just looked at the source code and verified that exec_stmt_select
sets FOUND appropriately, so I'm pretty certain that you've made some
trivial pilot error or other.  But without exact details on what you
did, it's unlikely anyone else will guess the mistake.

            regards, tom lane

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

Предыдущее
От: Alex
Дата:
Сообщение: Re: plpgsql FOUND Variable
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Recent installed 7.3.4 startup doubt