SVN Commit by dpage: r4238 - trunk/pgadmin3/xtra/pgagent - Mailing list pgadmin-hackers

From svn@pgadmin.org
Subject SVN Commit by dpage: r4238 - trunk/pgadmin3/xtra/pgagent
Date
Msg-id 200505231847.j4NIlvbH028493@developer.pgadmin.org
Whole thread Raw
List pgadmin-hackers
Author: dpage
Date: 2005-05-23 19:47:57 +0100 (Mon, 23 May 2005)
New Revision: 4238

Modified:
   trunk/pgadmin3/xtra/pgagent/connection.cpp
Log:
Reset connections to default state when returning to the pool.

Modified: trunk/pgadmin3/xtra/pgagent/connection.cpp
===================================================================
--- trunk/pgadmin3/xtra/pgagent/connection.cpp    2005-05-23 15:42:55 UTC (rev 4237)
+++ trunk/pgadmin3/xtra/pgagent/connection.cpp    2005-05-23 18:47:57 UTC (rev 4238)
@@ -139,6 +139,8 @@
 {
     wxMutexLocker lock(s_PoolLock);

+    // Cleanup
+    this->ExecuteVoid(wxT("RESET ALL"));
     this->lastError.Empty();

     LogMessage(_("Returning connection to database ") + this->dbname, LOG_DEBUG);


pgadmin-hackers by date:

Previous
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4237 - trunk/pgadmin3/src/agent
Next
From: svn@pgadmin.org
Date:
Subject: SVN Commit by dpage: r4239 - in trunk/pgadmin3: src/agent xtra/pgagent