Re: default parameters

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Andrey Vinogradov <octonog(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: default parameters
Date: 2012-07-02 20:46:49
Message-ID: 1341262009.1912.42.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Mon, 2012-07-02 at 15:04 +0400, Andrey Vinogradov wrote:
> Hi,
>
> There is a function with the default parameter:
>
> CREATE OR REPLACE FUNCTION test(p_int integer *default 1*)
> RETURNS void AS
> $BODY$declare
> begin
> --foo;
> end;$BODY$
> LANGUAGE plpgsql VOLATILE
> COST 100;
>
>
> The object browser of the pgAdmin III has been refreshed more than once.
> The SQL query of the test fuction is
>
> CREATE OR REPLACE FUNCTION test(p_int integer) -- <=== default value is
> disappear
> RETURNS void AS
> $BODY$declare
> begin
> --foo;
> end;$BODY$
> LANGUAGE plpgsql VOLATILE
> COST 100;
>
> pgAdmin III Version 1.14.3 (Jun 1 2012, rev:REL-1_14_3)
> postgresql-9.1.4-1-windows-x64
> Windows 7

It works in 1.16 beta 2. And there shouldn't be any more release of
1.14. So I advise you to update to 1.16 beta.

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Rohan Carly 2012-07-03 06:50:50 Re: saved passwords deleted
Previous Message Guillaume Lelarge 2012-07-02 20:44:29 Re: Prevent loss of query text when pgAdmin crashes or freezes