This commit is contained in:
Aleksandar Fabijanic 2007-05-18 19:29:21 +00:00
parent d67d05230e
commit 85864b5fc2
2 changed files with 4 additions and 4 deletions

View File

@ -70,9 +70,9 @@ public:
struct DiagnosticFields
{
/// SQLGetDiagRec fields
POCO_SQLCHAR _sqlState[SQL_STATE_SIZE];
POCO_SQLCHAR _message[SQL_MESSAGE_LENGTH];
SQLINTEGER _nativeError;
POCO_SQLCHAR _sqlState[SQL_STATE_SIZE];
POCO_SQLCHAR _message[SQL_MESSAGE_LENGTH];
SQLINTEGER _nativeError;
};
typedef std::vector<DiagnosticFields> FieldVec;

View File

@ -129,7 +129,7 @@ public:
std::string toString() const
{
std::stringstream os;
os << "ODBC Error: " << what() << std::endl
os << "ODBC Error: " << _error.toString() << std::endl
<< "===================" << std::endl
<< _error.toString() << std::endl ;
return os.str();