summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'libodbcpp/odbc-connection.h')
-rw-r--r--libodbcpp/odbc-connection.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libodbcpp/odbc-connection.h b/libodbcpp/odbc-connection.h
index d927b70..c2f4791 100644
--- a/libodbcpp/odbc-connection.h
+++ b/libodbcpp/odbc-connection.h
@@ -8,6 +8,11 @@
#include <sql.h>
namespace ODBC {
+ class ConnectionError : public virtual Error, public virtual DB::ConnectionError {
+ public:
+ ConnectionError(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle);
+ };
+
class Connection : public DB::Connection {
public:
Connection(const DSN& d);
@@ -45,11 +50,6 @@ namespace ODBC {
mutable unsigned int txDepth;
mutable bool txAborted;
};
- class ConnectionError : public DB::ConnectionError, public virtual Error {
- public:
- ConnectionError(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle, char const * stage);
- ConnectionError(const ConnectionError &);
- };
}
#endif