Skip to content

Commit

Permalink
Disabled MySQL++ exceptions because they are pretty much useless.
Browse files Browse the repository at this point in the history
  • Loading branch information
cathyjf committed Oct 5, 2010
1 parent 5991a09 commit 80f8bdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/database/DatabaseRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80f8bdf

Please sign in to comment.