Changes between Version 25 and Version 26 of Docs/Prog/Manual/ApplicationLibraries/lib825db
- Timestamp:
- 10/23/25 09:17:52 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825db
v25 v26 113 113 Be sure to replace SQLITE_ROW with DBSQL_ROW. 114 114 115 The CDBStatement destructor will automatically cleanup the results of the query. However, there may be some cases where it is desired to cleanup the query results before the destructor runs. In this case the //CDBStatement::Close()// function may be called. There are also //CDBStatement::Query(const char* sql)// and //CDBStatement::Query(const std::string& sql)// functions that can be used to re-query using the same CDBStatement instance. There is also a //CDBStatement// constructor without the SQL parameter. In this case a //Query// function call is necessary to get results from the statement. 116 115 117 When app finishs existing apps: 116 118 {{{#!c++ … … 119 121 Replace with: 120 122 {{{#!c++ 121 appDB->Close ();123 appDB->CloseDatabase(); 122 124 delete appDB; 123 125 appDB = nullptr;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/cardinal.gif)