summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-21 02:08:09 +0000
committerrandomdan <randomdan@localhost>2011-02-21 02:08:09 +0000
commit232f6ead6142aeedb1754c489b1d3f20e178a95c (patch)
tree6b33125332a4259be597b0da403ea1b56d8278a5
parentAdd conversions for floats, ints and datetimes for variables (diff)
downloadproject2-232f6ead6142aeedb1754c489b1d3f20e178a95c.tar.bz2
project2-232f6ead6142aeedb1754c489b1d3f20e178a95c.tar.xz
project2-232f6ead6142aeedb1754c489b1d3f20e178a95c.zip
'finish' the connection on disconnect only, will have to do for now.... it breaks with multiple concurrent common object instances (sendmail for example)
-rw-r--r--project2/rdbmsDataSource.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/project2/rdbmsDataSource.cpp b/project2/rdbmsDataSource.cpp
index 7ff4408..e843d8c 100644
--- a/project2/rdbmsDataSource.cpp
+++ b/project2/rdbmsDataSource.cpp
@@ -65,9 +65,6 @@ RdbmsDataSource::RdbmsDataSource(const xmlpp::Element * p) :
RdbmsDataSource::~RdbmsDataSource()
{
- BOOST_FOREACH(DBHosts::value_type & h, dbhosts) {
- h.second->connection->finish();
- }
}
void
@@ -196,6 +193,7 @@ RdbmsDataSource::RdbmsConnection::RdbmsConnection(const DB::Connection * con, ti
RdbmsDataSource::RdbmsConnection::~RdbmsConnection()
{
+ connection->finish();
delete connection;
}