1. OdbcDatabaseLayer.cpp can not connect to the DB using a connection string (m_strConnection). To need to fix the function Open () on
Code: Select all
bool OdbcDatabaseLayer::Open( )
...
#ifdef wxUSE_UNICODE
wxCharBuffer connectionCharBuffer = ConvertToUnicodeStream(m_strConnection);
#else
void* connectionCharBuffer = (void*)m_strConnection.c_str();
#endif
from
void* connectionCharBuffer = (void*)m_strConnection.c_str();
Code: Select all
void OdbcDatabaseLayer::InterpretErrorCodes( long nCode, void* stmth_ptr )
...
SetErrorMessage(ConvertFromUnicodeStream((char*)strBuffer));
//SetErrorMessage(wxString((wxChar*)strBuffer));
Code: Select all
void OdbcPreparedStatement::InterpretErrorCodes( long nCode, SQLHSTMT stmth_ptr )
...
SetErrorMessage(ConvertFromUnicodeStream((char*)strBuffer));
//SetErrorMessage(wxString((wxChar*)strBuffer));