| 130 | } |
| 131 | |
| 132 | void IdoPgsqlConnection::ExceptionHandler(boost::exception_ptr exp) |
| 133 | { |
| 134 | Log(LogWarning, "IdoPgsqlConnection", "Exception during database operation: Verify that your database is operational!"); |
| 135 | |
| 136 | Log(LogDebug, "IdoPgsqlConnection") |
| 137 | << "Exception during database operation: " << DiagnosticInformation(std::move(exp)); |
| 138 | |
| 139 | if (GetConnected()) { |
| 140 | m_Pgsql->finish(m_Connection); |
| 141 | SetConnected(false); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | void IdoPgsqlConnection::AssertOnWorkQueue() |
| 146 | { |