pgAdmin III commit: Fix for failed new connection in query tool

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin III commit: Fix for failed new connection in query tool
Date: 2010-09-07 17:31:11
Message-ID: 201009071731.o87HVBBA088912@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Fix for failed new connection in query tool

When a user tries to open a new connection in the query tool, and that the new
connection fails, the conn variable still has the invalid connection handle.
And this prevents us from getting back to the previous older one. So, we need
to use a temporary variable to store the new (and perhaps invalid) connection
handle.

Report from Erwin Brandstetter.

Branch
------
REL-1_12_0_PATCHES

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=97ec7a649b00d72010ff1a536433cf591723a534

Modified Files
--------------
pgadmin/frm/frmQuery.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message pgAdmin Trac 2010-09-07 17:32:30 Re: [pgAdmin III] #231: New connection in query tool crashes pgadmin
Previous Message pgAdmin Trac 2010-09-07 17:24:55 Re: [pgAdmin III] #231: New connection in query tool crashes pgadmin