diff --git a/Data/ODBC/include/Poco/Data/ODBC/ODBCException.h b/Data/ODBC/include/Poco/Data/ODBC/ODBCException.h index cb785152c..a66feac3f 100644 --- a/Data/ODBC/include/Poco/Data/ODBC/ODBCException.h +++ b/Data/ODBC/include/Poco/Data/ODBC/ODBCException.h @@ -86,7 +86,8 @@ public: HandleException& operator = (const HandleException& exc) /// Assignment operator { - HandleException::operator = (exc); + if (&exc != this) _error = exc._error; + return *this; }