Exception/ODBCException modifications to safely (SQLite ODBC tests were failing) propagate ODBC error messages up the hierarchy

SharedPtr/AutoPtr TypeHandler tests
FreeTDS SQLServer tests changes from 1.3.3
Windows build scripts fixes from 1.3.3
This commit is contained in:
Aleksandar Fabijanic
2008-10-07 18:58:47 +00:00
parent 9be2b5bd92
commit fa02d5aa5b
17 changed files with 316 additions and 46 deletions

View File

@@ -113,6 +113,12 @@ protected:
Exception(int code = 0);
/// Standard constructor.
void message(const std::string& msg);
/// Sets the message for the exception.
void extendedMessage(const std::string& arg);
/// Sets the extended message for the exception.
private:
std::string _msg;
Exception* _pNested;
@@ -135,6 +141,12 @@ inline const std::string& Exception::message() const
}
inline void Exception::message(const std::string& msg)
{
_msg = msg;
}
inline int Exception::code() const
{
return _code;