From 639cdeed5247d5ddc3ac8889688767c6f0da559c Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 15 Jul 2010 22:51:10 +0000 Subject: Cache that a DSN is unavailable for 60sec --- libodbcpp/connection.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libodbcpp/connection.h') diff --git a/libodbcpp/connection.h b/libodbcpp/connection.h index 82caf22..0d2e9d4 100644 --- a/libodbcpp/connection.h +++ b/libodbcpp/connection.h @@ -2,6 +2,7 @@ #define CONNECTION_H #include "dsn.h" +#include "error.h" #include namespace ODBC { @@ -26,6 +27,13 @@ namespace ODBC { mutable unsigned int txDepth; mutable bool txAborted; }; + class ConnectionError : public Error { + public: + ConnectionError(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * stage); + ConnectionError(const ConnectionError &); + + const time_t FailureTime; + }; } #endif -- cgit v1.2.3