mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 03:29:47 +02:00
This commit is contained in:
@@ -70,9 +70,9 @@ public:
|
|||||||
struct DiagnosticFields
|
struct DiagnosticFields
|
||||||
{
|
{
|
||||||
/// SQLGetDiagRec fields
|
/// SQLGetDiagRec fields
|
||||||
POCO_SQLCHAR _sqlState[SQL_STATE_SIZE];
|
POCO_SQLCHAR _sqlState[SQL_STATE_SIZE];
|
||||||
POCO_SQLCHAR _message[SQL_MESSAGE_LENGTH];
|
POCO_SQLCHAR _message[SQL_MESSAGE_LENGTH];
|
||||||
SQLINTEGER _nativeError;
|
SQLINTEGER _nativeError;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::vector<DiagnosticFields> FieldVec;
|
typedef std::vector<DiagnosticFields> FieldVec;
|
||||||
|
@@ -129,7 +129,7 @@ public:
|
|||||||
std::string toString() const
|
std::string toString() const
|
||||||
{
|
{
|
||||||
std::stringstream os;
|
std::stringstream os;
|
||||||
os << "ODBC Error: " << what() << std::endl
|
os << "ODBC Error: " << _error.toString() << std::endl
|
||||||
<< "===================" << std::endl
|
<< "===================" << std::endl
|
||||||
<< _error.toString() << std::endl ;
|
<< _error.toString() << std::endl ;
|
||||||
return os.str();
|
return os.str();
|
||||||
|
Reference in New Issue
Block a user