From 7a92e72bc8d1647fb59e963f4ec2f3f03f24fcd7 Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Mon, 9 Jun 2014 03:05:25 -0500 Subject: [PATCH] Fix: HandleExeption assignment operator calls itself --- Data/ODBC/include/Poco/Data/ODBC/ODBCException.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }