> How do you actually get a SQLITE_CANTOPEN_ISDIR error?
> In order to get an extended result code, we need to pass a sqlite3*
> connection, but you don't have that if the file can't be opened in the
> first place.
I understand why you'd think that, but check the docs:
> A database connection handle is usually returned in *ppDb, __even if an
> The only exception is that if SQLite is unable to allocate memory to hold
the sqlite3 object,
> a NULL will be written into *ppDb instead of a pointer to the sqlite3
So we're not looking at an "either an error or sqlite3* is returned" - you
can get both. The other thing to takeaway:
> Whether or not an error occurs when it is opened, resources associated
> database connection handle should be released by passing it to
> when it is no longer required.