android - How to know that the library is compiled with no particular entries defined? -


In the documentation of sqlite about foreign keys, it is said that using

For foreign key constraints in SQLite, the library should be compiled with SQLITE_OMIT_FOREIGN_KEY or SQLITE_OMIT_TRIGGER not defined.

How to find out if SQLITE_OMIT_FOREIGN_KEY or SQLITE_OMIT_TRIGGER are defined or not?

Well I used the foreign key constraint to start the database, following the following in my DB assistant class I use -

  Public Class DataService Extended SQLiteOpenHelper {Personal SQLiteDatabase DB; .. public zero init () {if (db == null) {db = getWritableDatabase (); Db.execSQL ("PRAGMA foreign_keys = current;"); }}    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -