#include "wx/msgdlg.h"
#endif
#include "wx/filefn.h"
+ #include "wx/wxchar.h"
#endif
#if wxMAJOR_VERSION == 1
*/
DBMS wxDB::Dbms(void)
{
- if (!wxStrnicmp(dbInf.dbmsName,"Oracle",6))
+ wxChar baseName[20];
+
+ wxStrncpy(baseName,dbInf.dbmsName,6);
+ baseName[6] = 0;
+// if (!wxStrnicmp(dbInf.dbmsName,"Oracle",6))
+ if (!wxStricmp(baseName,"Oracle"))
return(dbmsORACLE);
if (!wxStricmp(dbInf.dbmsName,"Adaptive Server Anywhere"))
return(dbmsSYBASE_ASA);
return(dbmsPOSTGRES);
if (!wxStricmp(dbInf.dbmsName,"ACCESS"))
return(dbmsACCESS);
- if (!wxStrnicmp(dbInf.dbmsName,"DBASE",5))
+ wxStrncpy(baseName,dbInf.dbmsName,5);
+ baseName[5] = 0;
+// if (!wxStrnicmp(dbInf.dbmsName,"DBASE",5))
+ if (!wxStricmp(baseName,"DBASE"))
return(dbmsDBASE);
return(dbmsUNIDENTIFIED);