RE: BUG #18195: PL/pgSQL: invalid syntax allowed in SELECT INTO statement

From: "Pavel Kulakov" <paul(dot)kulakov(at)systematica(dot)ru>
To: <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: RE: BUG #18195: PL/pgSQL: invalid syntax allowed in SELECT INTO statement
Date: 2023-11-15 07:47:10
Message-ID: 001901da1797$f0bd4f90$d237eeb0$@systematica.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

This also permits the following syntax in PL/pgSQL:

do $sql$
declare _s text;
begin
_s = '1' somegarbage;
end;
$sql$;

I understand why it works. But it looks really strange.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2023-11-15 07:52:53 Re: BUG #18195: PL/pgSQL: invalid syntax allowed in SELECT INTO statement
Previous Message Pavel Kulakov 2023-11-15 07:38:42 RE: BUG #18195: PL/pgSQL: invalid syntax allowed in SELECT INTO statement