BUG #5553: Repeating the keyword DECLARE in the CREATE FUNCTION statement

From: "Sergey" <sklo(at)mail(dot)ur(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5553: Repeating the keyword DECLARE in the CREATE FUNCTION statement
Date: 2010-07-12 07:47:07
Message-ID: 201007120747.o6C7l7Ra087207@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5553
Logged by: Sergey
Email address: sklo(at)mail(dot)ur(dot)ru
PostgreSQL version: 9 beta 2
Operating system: Windows XP
Description: Repeating the keyword DECLARE in the CREATE FUNCTION
statement
Details:

Is it a normal behavior of the parser:

CREATE OR REPLACE FUNCTION row_ret13(b_in IN BOOLEAN = true or false,
INTEGER DEFAULT 0 )
RETURNS BOOLEAN
AS
$$
DECLARE
DECLARE
DECLARE a integer DEFAULT 32;
DECLARE
DECLARE
DECLARE
DECLARE
DECLARE b integer DEFAULT 32;
DECLARE
DECLARE
BEGIN
RETURN FALSE OR b_in;
END;
$$
LANGUAGE PLPGSQL;

- Parsed.

select row_ret13();
======
t

Thanks,
Sergey.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David Schmitt 2010-07-12 08:10:41 Re: BUG #5549: Feature: plpgsql should allow DECLARE cursor FOR EXECUTE '...'
Previous Message Konstantin Kulikov 2010-07-12 07:16:03 BUG #5552: incorrect returned value of time