On Thu, Feb 17, 2011 at 10:01 AM, Sven L <[email protected]> wrote:
>
> sqlite3* db = NULL;
> if (sqlite3_open_v2(path, &db, SQLITE_OPEN_READWRITE, NULL) ==
> SQLITE_CANTOPEN)
> {
> // Ok, database does not exist. Still, db != NULL...?
> ASSERT(db != NULL);
> }
>
> Database cannot be opened, but we get an open handle to it... Please
> explain!
>
The handle returned so that you can call sqlite3_errmsg(db).
>
> 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