On Thu, Jan 19, 2012 at 1:03 PM, Marc Cals <[email protected]> wrote:

> Hello,
>
> I have one doubt about sqlite3_get_table() method. When it returns an error
> is it necessary to free returned results invoking sqlite3_free_table
> method? Or when an error produced return NULL value as result ?
>

You should always invoke sqlite3_free_table() regardless of whether or not
an error was returned.  Sometimes the result will be NULL, sometimes not.
But either way sqlite3_free_table() will work.


>
> Thanks
> _______________________________________________
> sqlite-users mailing list
> [email protected]
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>



-- 
D. Richard Hipp
[email protected]
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to