diff --git a/storage/connect/odbconn.h b/storage/connect/odbconn.h index 2bf18c049f7c504170ab65a154a27640403e6d5a..93435d7f7b32e8f78e2ca97a9210821222ef3478 100644 --- a/storage/connect/odbconn.h +++ b/storage/connect/odbconn.h @@ -90,9 +90,8 @@ class DBX : public BLOCK { // Implementation (use ThrowDBX to create) RETCODE GetRC(void) {return m_RC;} - PSZ GetErrorMessage(int i) - {return (i >=0 && i < MAX_NUM_OF_MSG) ? m_ErrMsg[i] - : "No ODBC error";} + const char *GetErrorMessage(int i) + { return (i >=0 && i < MAX_NUM_OF_MSG) ? m_ErrMsg[i] : "No ODBC error"; } protected: void BuildErrorMessage(ODBConn* pdb, HSTMT hstmt = SQL_NULL_HSTMT);