Imagine I have 3 rows in a sqlite table.
While reading these 3 rows I also want to insert new rows depending on the values in these 3 rows.
I do a select on these rows and use sqlite3_step function to get each row.
The problem is that sqlite3_step loops through more than 3 times, I think because it also sees the newly inserted rows. Somehow the cursor gets resets and same rows are read twice etc.
How can I make sqlite3_step to read only 3 rows? Basically I wish to loop through only the resultset and not the new rows.
Thanks.