[glom] Make connections to central PostgreSQL servers work again.



commit db74a44d67a56e62efae861114796c001633b68d
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Nov 2 13:54:08 2011 +0100

    Make connections to central PostgreSQL servers work again.
    
    	* glom/libglom/connectionpool_backends/postgres_central.cc: Do not
    	forget a previously-successful connection-but-not-to-the-database.

 ChangeLog                                          |    7 +++++++
 .../connectionpool_backends/postgres_central.cc    |    4 +++-
 2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7358be7..3190176 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-02  Murray Cumming  <murrayc murrayc com>
+
+	Make connections to central PostgreSQL servers work again.
+
+	* glom/libglom/connectionpool_backends/postgres_central.cc: Do not 
+	forget a previously-successful connection-but-not-to-the-database.
+
 2011-11-01  Murray Cumming  <murrayc murrayc com>
 
 	Added test for Glom::Priv getting of group and user names.
diff --git a/glom/libglom/connectionpool_backends/postgres_central.cc b/glom/libglom/connectionpool_backends/postgres_central.cc
index e3f32ed..ab6ea33 100644
--- a/glom/libglom/connectionpool_backends/postgres_central.cc
+++ b/glom/libglom/connectionpool_backends/postgres_central.cc
@@ -126,7 +126,9 @@ Glib::RefPtr<Gnome::Gda::Connection> PostgresCentralHosted::connect(const Glib::
       }
       catch(const ExceptionConnection& ex)
       {
-        connection_possible = false;
+        //Don't set this, because we might have previously set it to true to 
+        //show that a connection was possible with a previously-tried port: connection_possible = false;
+
         // Remember port if only the database was missing
         if(ex.get_failure_type() == ExceptionConnection::FAILURE_NO_DATABASE)
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]