On 21 Oct 2012, at 8:54am, Igor Korot <ikoro...@gmail.com> wrote: > On Sun, Oct 21, 2012 at 12:05 AM, Simon Slavin <slav...@bigfraud.org> wrote: >> >> >> The simplest thing is to use any compilation (including any you already >> have) and just make sure you use the PRAGMA immediately after opening the >> file. > > I didn't change anything yet and didn't include any defines in the MSVC > project. > So all I need is "sqlite3_exec( handle, "PRAGMA foreign_keys = ON", > NULL, NULL, &error );", right?
Right. Actually you should really examine the values that is returned and (simplest) assert that it's SQLITE_OK, but that's true for every _exec(). Simon. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users