On 3 Jul 2014, at 8:24am, Hick Gunter <h...@scigames.at> wrote: > How about this? > > > sqlite3_stmt *sqlite3_next_stmt(sqlite3 *pDb, sqlite3_stmt *pStmt); > > This interface returns a pointer to the next prepared statement after pStmt > associated with the database connection pDb. If pStmt is NULL then this > interface returns a pointer to the first prepared statement associated with > the database connection pDb. If no prepared statement satisfies the > conditions of this routine, it returns NULL. > > The database connection pointer D in a call to sqlite3_next_stmt(D,S) must > refer to an open database connection and in particular must not be a NULL > pointer.
I don't know how practical that would be to implement, but it looks good to me. If I understand your design properly some users would pass NULL and see if they got NULL back. Others would iterate down the list. Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users