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

pgAdmin III commit: Fix crash when selecting a not-connected database

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin III commit: Fix crash when selecting a not-connected database
Date: 2010-08-26 08:30:38
Message-ID: 201008260830.o7Q8UcHq096110@gothos.postgresql.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Commit: http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=18624cb875a5308388845461c0bba67c1600136c

Log Message
-----------
Fix crash when selecting a not-connected database

When pgAdmin's browser is on the statistics tab and if a user clicks on a
not-already-connected database, the queries on statistics informations
are fired over a non-existant connection, this resulting in a crash.

This patch uses the connection of the maintenance database if pgAdmin
doesn't already have a connection to the database for which we want to see
statistics.

Branch
------
master

Modified Files
--------------
pgadmin/schema/pgDatabase.cpp |    5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)

pgadmin-hackers by date

Next:From: Guillaume LelargeDate: 2010-08-26 08:33:11
Subject: Re: pgAdmin III commit: Default role support in server configs, quick conne
Previous:From: Dave PageDate: 2010-08-26 08:16:44
Subject: Re: Fwd: [HACKERS] Packaging of PG 9.0RC1

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