Skip site navigation (1) Skip section navigation (2)

Re: PgAdmin crash (1.10.0 beta4) + possible fix

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: Gevik Babakhani <pgdev(at)xs4all(dot)nl>
Cc: pgadmin-hackers(at)postgresql(dot)org
Subject: Re: PgAdmin crash (1.10.0 beta4) + possible fix
Date: 2009-05-26 05:45:12
Message-ID: 4A1B81E8.5010105@enterprisedb.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi Gevik,

Thanks for reporting this.

Dave,

Please find the patch for the same.

Gevik Babakhani wrote:
> PgAdmin crashes when browsing functions that only have a single out 
> parameters without a default value (BTW default values on out 
> parameters are not supported anyways)
>
> The problem is in pgFunction.cpp(324).
>
> To replicate the crash:
> --------------------------------------------------------------------------- 
>
> CREATE OR REPLACE FUNCTION out_test_crash_3(OUT integer)
>  RETURNS integer AS
> $BODY$
> begin
> $1 = 1000;
> end;
> $BODY$
>  LANGUAGE 'plpgsql'
> -------------------------------------------------------------------------- 
>
>
> Then:
> Refresh the function node in the tree and click on the function name 
> above.
>
> Possibe fix:
> Included.
>
> -- 
> Regards,
> Gevik
-- 
Thanks & Regards,
Ashesh Vashi

EnterpriseDB INDIA: http://www.enterprisedb.com

Attachment: DefValFunCrash_110_Beta4_v1.patch
Description: text/x-diff (1.2 KB)

In response to

Responses

pgadmin-hackers by date

Next:From: svnDate: 2009-05-26 14:58:51
Subject: SVN Commit by dpage: r7882 - trunk/pgadmin3/pgadmin
Previous:From: Gevik BabakhaniDate: 2009-05-25 15:10:10
Subject: PgAdmin crash (1.10.0 beta4) + possible fix

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group