Changes between Version 8 and Version 9 of Docs/Prog/Manual/ApplicationLibraries/lib825db
- Timestamp:
- 10/23/25 07:10:08 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825db
v8 v9 40 40 Replace with code similar to: 41 41 {{{ 42 if(appDBcfg.GetDBType() == CAppDatabaseCfg::appDataMySQL) {43 appDB = new CDBMySQL(appDBcfg.GetServer(), appDBcfg.GetUser(), appDBcfg.GetPassword(), appDBcfg.GetDatabase());44 } else {45 path = appDataPath + "ids.db3";46 appDB = new CDBSQLite(path);47 }42 if(appDBcfg.GetDBType() == CAppDatabaseCfg::appDataMySQL) { 43 appDB = new CDBMySQL(appDBcfg.GetServer(), appDBcfg.GetUser(), appDBcfg.GetPassword(), appDBcfg.GetDatabase()); 44 } else { 45 path = appDataPath + "ids.db3"; 46 appDB = new CDBSQLite(path); 47 } 48 48 49 if(appDB->OpenDatabase() == false) { 50 51 DEBUG_MSG("Error [%s]\n", appDB->GetErrorMsg().c_str()); 52 DrawErrorBox("Cannot open database", 4); 53 return false; 54 } 55 56 49 if(appDB->OpenDatabase() == false) { 50 DEBUG_MSG("Error [%s]\n", appDB->GetErrorMsg().c_str()); 51 DrawErrorBox("Cannot open database", 4); 52 } 57 53 }}} 58 54
![(please configure the [header_logo] section in trac.ini)](/chrome/site/cardinal.gif)