From 5413e43dad5055a87a5581df67aa14a3e1489312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Mon, 10 Dec 2012 14:30:05 +0100 Subject: [PATCH] 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) --- src/SQLiteC++/Statement.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SQLiteC++/Statement.h b/src/SQLiteC++/Statement.h index c3f536b..347ec17 100644 --- a/src/SQLiteC++/Statement.h +++ b/src/SQLiteC++/Statement.h @@ -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);