On 21 Jun 2010, at 2:37am, Jay A. Kreibich wrote: > On Sun, Jun 20, 2010 at 11:07:27PM +0100, Simon Slavin scratched on the wall: > >> Instead check the return value. If you get SQLITE_OK then you >> need to close the connection. If you don't, you don't. > > Check the return value, but call sqlite3_close(). Always. > It will accept a NULL pointer.
And a post of yours following that one suggests that it's an error to call _close() more than once, so the rule is "For every _open(), always call exactly one _close(), whether the _open() worked or not.". Okay, that's a rule I can follow. Simon. _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

