]> git.ipfire.org Git - thirdparty/sqlite.git/commit
Fix a problem in "PRAGMA foreign_key_check" in handling a WITHOUT ROWID child
authordan <dan@noemail.net>
Mon, 17 Apr 2017 18:02:41 +0000 (18:02 +0000)
committerdan <dan@noemail.net>
Mon, 17 Apr 2017 18:02:41 +0000 (18:02 +0000)
commit940464b1dc501ab5fd0e8161e9cff6229af53733
treeb097163c50c444e2bd5c7fa4dc98cf22918c8997
parent624edacf6a0a08f7538d7593f146287f62c959be
Fix a problem in "PRAGMA foreign_key_check" in handling a WITHOUT ROWID child
table with an INTEGER PRIMARY KEY parent key. Also, if an FK violation is
detected in a WITHOUT ROWID child table, do not try to read and return the
rowid. The third column returned by "PRAGMA foreign_key_check" in this case
(WITHOUT ROWID child table) is now always set to NULL.

FossilOrigin-Name: 690870bd7b2e607b7992c4496c9f08c29eb72a36af002c606fd7aa3dcf94a2a4
manifest
manifest.uuid
src/pragma.c
test/fkey5.test