Hi, I'm querying a table by writing the query in sqlite3_exec with a
callback function that does some operation on the resulting row.
Everything is fine when the table has even one row, but when it is
empty, my program halts with "segmentation fault". I can add a dummy row
to the table to prevent this, but is there a nicer solution to this
issue?
Thanks, Rafi.


sqlite3_get_table wraps sqlite3_exec and uses a callback, check it out as an example.. (or just use it instead, if possible)

http://www.sqlite.org/cvstrac/fileview?f=sqlite/src/table.c&v=1.26

- Trey


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to