pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #7506: Windows 64 bit PGAdmin 1.14.3 plpgsql default parameter value not appearing
2+ messages / 2 participants
[nested] [flat]

* BUG #7506: Windows 64 bit PGAdmin 1.14.3 plpgsql default parameter value not appearing
@ 2012-08-25 00:56  crispond@gmail.com
  0 siblings, 1 reply; 2+ messages in thread

From: crispond@gmail.com @ 2012-08-25 00:56 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      7506
Logged by:          Cris Pond
Email address:      crispond@gmail.com
PostgreSQL version: 9.1.5
Operating system:   Windows 64 bit
Description:        

Sorry, I'm having trouble posting a bug report to the pgAdmin site.  Please
forward this on:


It looks like this bug has come back in pgAdmin 1.14.3 for Windows 64bit:

http://code.pgadmin.org/trac/ticket/79

If you do the following:

------
CREATE OR REPLACE FUNCTION demo(level integer DEFAULT 0) RETURNS
integer language 'plpgsql' AS $$
BEGIN
        return (level);
END; $$;
select demo(); --<---No error
------

The default parameter functions correctly.  The code showing in
pgadmin, however, is missing the default:

-----
drop function if exists demo(int);
--Copied from pgAdmin
CREATE OR REPLACE FUNCTION demo(level integer)
  RETURNS integer AS
$BODY$
BEGIN
        return (level);
END; $BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;
select demo(); --<---Error
------

I'm pretty sure pg_proc.proargdefaults contains the correct
information and that pgadmin is just not interpreting it.  I tried
executing the code on postgresql 8.4.3 and 9.1.5, and the field looked
basically the same, but pgAdmin 1.10 is displaying correctly and
pgAdmin 1.14.3 is not.

Thank you for your great products.

-cris






^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #7506: Windows 64 bit PGAdmin 1.14.3 plpgsql default parameter value not appearing
@ 2012-08-26 06:32  Guillaume Lelarge <guillaume@lelarge.info>
  parent: crispond@gmail.com
  0 siblings, 0 replies; 2+ messages in thread

From: Guillaume Lelarge @ 2012-08-26 06:32 UTC (permalink / raw)
  To: crispond@gmail.com; +Cc: pgsql-bugs

On Sat, 2012-08-25 at 00:56 +0000, crispond@gmail.com wrote:
> The following bug has been logged on the website:
> 
> Bug reference:      7506
> Logged by:          Cris Pond
> Email address:      crispond@gmail.com
> PostgreSQL version: 9.1.5
> Operating system:   Windows 64 bit
> Description:        
> 
> Sorry, I'm having trouble posting a bug report to the pgAdmin site.

How so? you just need to send an email to pgadmin-support mailing list
(http://archives.postgresql.org/pgadmin-support/).

>   Please
> forward this on:
> 
> 
> It looks like this bug has come back in pgAdmin 1.14.3 for Windows 64bit:
> 
> http://code.pgadmin.org/trac/ticket/79
> 
> If you do the following:
> 
> ------
> CREATE OR REPLACE FUNCTION demo(level integer DEFAULT 0) RETURNS
> integer language 'plpgsql' AS $$
> BEGIN
>         return (level);
> END; $$;
> select demo(); --<---No error
> ------
> 
> The default parameter functions correctly.  The code showing in
> pgadmin, however, is missing the default:
> 
> -----
> drop function if exists demo(int);
> --Copied from pgAdmin
> CREATE OR REPLACE FUNCTION demo(level integer)
>   RETURNS integer AS
> $BODY$
> BEGIN
>         return (level);
> END; $BODY$
>   LANGUAGE plpgsql VOLATILE
>   COST 100;
> select demo(); --<---Error
> ------
> 
> I'm pretty sure pg_proc.proargdefaults contains the correct
> information and that pgadmin is just not interpreting it.  I tried
> executing the code on postgresql 8.4.3 and 9.1.5, and the field looked
> basically the same, but pgAdmin 1.10 is displaying correctly and
> pgAdmin 1.14.3 is not.
> 

This has been fixed in 1.16 in june, so you can have a fixed binary with
1.16 beta 4.


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





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-08-26 06:32 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-08-25 00:56 BUG #7506: Windows 64 bit PGAdmin 1.14.3 plpgsql default parameter value not appearing crispond@gmail.com
2012-08-26 06:32 ` Guillaume Lelarge <guillaume@lelarge.info>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox