X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5054c9365a68862e9fc662f2ca1677404ddc14a7..2b9a7d4cc2f5f55df3d83f7cf2160cf9a509a4f2:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index a73b422186..ee2a47b16a 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -576,9 +576,10 @@ const wxChar *wxDb::convertUserID(const wxChar *userID, wxString &UserID) || Dbms() == dbmsXBASE_SEQUITER ) UserID.Empty(); - // Oracle user names may only be in uppercase, so force - // the name to uppercase - if (Dbms() == dbmsORACLE) + // Some databases require user names to be specified in uppercase, + // so force the name to uppercase + if ((Dbms() == dbmsORACLE) || + (Dbms() == dbmsMAXDB)) UserID = UserID.Upper(); return UserID.c_str(); @@ -3949,6 +3950,8 @@ wxDBMS wxDb::Dbms(void) return((wxDBMS)(dbmsType = dbmsXBASE_SEQUITER)); if (!wxStricmp(baseName,wxT("MySQL"))) return((wxDBMS)(dbmsType = dbmsMY_SQL)); + if (!wxStricmp(baseName,wxT("MaxDB"))) + return((wxDBMS)(dbmsType = dbmsMAXDB)); baseName[3] = 0; if (!wxStricmp(baseName,wxT("DB2")))