From 80f8bdf055b5e73b607d14d292690ef581ffe046 Mon Sep 17 00:00:00 2001 From: Cathy Fitzpatrick Date: Tue, 5 Oct 2010 10:54:14 -0600 Subject: [PATCH] Disabled MySQL++ exceptions because they are pretty much useless. --- src/database/DatabaseRegistry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/database/DatabaseRegistry.cpp b/src/database/DatabaseRegistry.cpp index fc08e05..2f0fd76 100644 --- a/src/database/DatabaseRegistry.cpp +++ b/src/database/DatabaseRegistry.cpp @@ -89,11 +89,13 @@ class ShoddyConnectionPool : public ConnectionPool { } protected: Connection *create() { - return new Connection(m_db.c_str(), + Connection *conn = new Connection(false); + conn->connect(m_db.c_str(), m_server.c_str(), m_user.c_str(), m_password.c_str(), m_port); + return conn; } void destroy(Connection *conn) { delete conn;