diff options
author | randomdan <randomdan@localhost> | 2010-07-15 22:51:10 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2010-07-15 22:51:10 +0000 |
commit | 639cdeed5247d5ddc3ac8889688767c6f0da559c (patch) | |
tree | 186301a8e606a9959e089669cc7f2d179abfa506 /libodbcpp/error.h | |
parent | Implement connection caching and checking (requires ODBCv3 driver) (diff) | |
download | libdbpp-odbc-639cdeed5247d5ddc3ac8889688767c6f0da559c.tar.bz2 libdbpp-odbc-639cdeed5247d5ddc3ac8889688767c6f0da559c.tar.xz libdbpp-odbc-639cdeed5247d5ddc3ac8889688767c6f0da559c.zip |
Cache that a DSN is unavailable for 60sec
Diffstat (limited to 'libodbcpp/error.h')
-rw-r--r-- | libodbcpp/error.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <sql.h> +#include <stdlib.h> #include <exception> namespace ODBC { @@ -14,6 +15,8 @@ namespace ODBC { ~Error() throw(); const char * what() const throw(); + protected: + Error(char * msg); private: char * msg; }; |