Look, I'm expecting to get an "SQL error: foreign key constraint failed" error, but this never happens, can you guys explain why? Working with sqlite3 db on Android.
sqlite> CREATE TABLE first (id text, value text);
sqlite> CREATE TABLE second (id text, ref text, foreign key(ref) references first(value));
sqlite> INSERT INTO first VALUES("1", "one");
sqlite> INSERT INTO first VALUES("2", "two");
sqlite> INSERT INTO second VALUES("1", "three");
So it is perfectly possible to insert "three", but there is no "three" in the first table. I'm confused.