X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5f72522e58e75bbd2c6e04544b6dd6a8260ea836..b08cd3bf53901e3180e0ee60376807563c828495:/include/wx/db.h?ds=sidebyside diff --git a/include/wx/db.h b/include/wx/db.h index 070fdce330..7fba228c9a 100644 --- a/include/wx/db.h +++ b/include/wx/db.h @@ -589,7 +589,13 @@ public: // ODBC Error Inf. SWORD cbErrorMsg; int DB_STATUS; +#ifdef __VMS + // The DECC compiler chokes when in db.cpp the array is accessed outside + // its bounds. Maybe this change should also applied for other platforms. + wxChar errorList[DB_MAX_ERROR_HISTORY][DB_MAX_ERROR_MSG_LEN+1]; +#else wxChar errorList[DB_MAX_ERROR_HISTORY][DB_MAX_ERROR_MSG_LEN]; +#endif wxChar errorMsg[SQL_MAX_MESSAGE_LENGTH]; SDWORD nativeError; wxChar sqlState[20];