Added comments to the return values of executeStep() that has a not-so-simple behavior

- true  (SQLITE_ROW)  if there is another row ready : you can call getColumn(N) to get it
                      then you have to call executeStep() again to fetch more rows until the query is finished
- false (SQLITE_DONE) if the query has finished executing : there is no (more) row of result
                      (case of a query with no result, or after N rows fetched successfully)
This commit is contained in:
Sébastien Rombauts 2012-12-10 14:30:05 +01:00
parent 9a5b993ae9
commit 5413e43dad

View File

@ -113,6 +113,11 @@ public:
/**
* @brief Execute a step of the query to fetch one row of results.
*
* @return - true (SQLITE_ROW) if there is another row ready : you can call getColumn(N) to get it
* then you have to call executeStep() again to fetch more rows until the query is finished
* - false (SQLITE_DONE) if the query has finished executing : there is no (more) row of result
* (case of a query with no result, or after N rows fetched successfully)
*/
bool executeStep(void); // throw(SQLite::Exception);