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/error.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libodbcpp/error.h') diff --git a/libodbcpp/error.h b/libodbcpp/error.h index f283a7c..73fa3bc 100644 --- a/libodbcpp/error.h +++ b/libodbcpp/error.h @@ -2,6 +2,7 @@ #define ODBC_ERROR_H #include +#include #include namespace ODBC { @@ -14,6 +15,8 @@ namespace ODBC { ~Error() throw(); const char * what() const throw(); + protected: + Error(char * msg); private: char * msg; }; -- cgit v1.2.3