Re: [sqlite] sqlite3_open_v2 vs. *ppDb=NULL

2011-10-12 Thread Krystian Bigaj
Thanks! I'm not sure how I've missed it. -- Best regards, Krystian Bigaj On Oct 12, 2011 11:01 PM, "David Garfield" wrote: > The documentation also says (http://sqlite.org/c3ref/open.html): > > If the 3rd parameter to sqlite3_open_v2() is not one of the >

Re: [sqlite] sqlite3_open_v2 vs. *ppDb=NULL

2011-10-12 Thread David Garfield
The documentation also says (http://sqlite.org/c3ref/open.html): If the 3rd parameter to sqlite3_open_v2() is not one of the combinations shown above optionally combined with other SQLITE_OPEN_* bits then the behavior is undefined. Seems like the undefined behavior was

[sqlite] sqlite3_open_v2 vs. *ppDb=NULL

2011-10-12 Thread Krystian Bigaj
Hi, Documentation says that: "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 object" but I see it's not entirely true. This example below stores NULL in *ppDb even when (I think)