Web pgadmin.org
 Home 
 ·  ·  ·  ·  ·  ·  · 
SVN Commit by dpage: r4238 - trunk/pgadmin3/xtra/pgagent

SVN Commit by dpage: r4238 - trunk/pgadmin3/xtra/pgagent



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);




Home | Main Index | Thread Index

top