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

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4238 - trunk/pgadmin3/xtra/pgagent
Date: 2005-05-23 18:47:57
Message-ID: 200505231847.j4NIlvbH028493@developer.pgadmin.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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);

Browse pgadmin-hackers by date

  From Date Subject
Next Message svn 2005-05-23 18:58:43 SVN Commit by dpage: r4239 - in trunk/pgadmin3: src/agent xtra/pgagent
Previous Message svn 2005-05-23 15:42:55 SVN Commit by dpage: r4237 - trunk/pgadmin3/src/agent