22 #ifndef __ODBCXX_ERRORHANDLER_H
23 #define __ODBCXX_ERRORHANDLER_H
34 friend class DataStreamBuf;
35 friend class DataStream;
54 void _checkErrorODBC2(SQLHENV henv,
61 void _checkErrorODBC3(SQLINTEGER handleType,
64 #endif //ODBCVER < 0x0300
66 void _checkStmtError(SQLHSTMT hstmt,
67 SQLRETURN
r,
const char* what=
"") {
69 if(r==SQL_SUCCESS_WITH_INFO || r==SQL_ERROR) {
72 this->_checkErrorODBC2(SQL_NULL_HENV, SQL_NULL_HDBC, hstmt,
83 if(r==SQL_SUCCESS_WITH_INFO || r==SQL_ERROR) {
86 this->_checkErrorODBC2(SQL_NULL_HENV, hdbc, SQL_NULL_HSTMT, r,
98 if(r==SQL_SUCCESS_WITH_INFO || r==SQL_ERROR) {
101 this->_checkErrorODBC2(henv,SQL_NULL_HDBC,SQL_NULL_HSTMT,r,
117 void clearWarnings();