Fix the ".lint fkey" shell command for cases where the child key is also an

INTEGER PRIMARY KEY.

FossilOrigin-Name: 48826b222c110a90996a84605318ea6b1e502b8c5129f4d561f8350dbdbcd264
This commit is contained in:
dan
2017-04-06 14:56:26 +00:00
parent 50da9382f9
commit 54e2efcd2f
4 changed files with 19 additions and 9 deletions
+6
View File
@@ -87,6 +87,12 @@ foreach {tn schema output} {
CREATE INDEX 'y1_d_e_f' ON 'y1'('d' COLLATE rtrim, 'e' COLLATE nocase, 'f'); --> x1(c,b,a)
}
9 {
CREATE TABLE p1(a, b UNIQUE);
CREATE TABLE c1(x INTEGER PRIMARY KEY REFERENCES p1(b));
} {
}
} {
forcedelete test.db
sqlite3 db test.db