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

PgAdmin crash (1.10.0 beta4) + possible fix

From: Gevik Babakhani <pgdev(at)xs4all(dot)nl>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: PgAdmin crash (1.10.0 beta4) + possible fix
Date: 2009-05-25 15:10:10
Message-ID: 4A1AB4D2.7020402@xs4all.nl (view raw or flat)
Thread:
Lists: pgadmin-hackers
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


Attachment: func-patch-1.patch
Description: text/plain (575 bytes)

Responses

pgadmin-hackers by date

Next:From: Ashesh VashiDate: 2009-05-26 05:45:12
Subject: Re: PgAdmin crash (1.10.0 beta4) + possible fix
Previous:From: Gevik BabakhaniDate: 2009-05-25 13:16:33
Subject: SQL Editor and tabs (bug?)

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