diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbeblob.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index 394335a92..6fc53b7a2 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -152,6 +152,10 @@ int sqlite3_blob_open( Index *pIdx; #ifndef SQLITE_OMIT_FOREIGN_KEY if( db->flags&SQLITE_ForeignKeys ){ + /* Check that the column is not part of an FK child key definition. It + ** is not necessary to check if it is part of a parent key, as parent + ** key columns must be indexed. The check below will pick up this + ** case. */ FKey *pFKey; for(pFKey=pTab->pFKey; pFKey; pFKey=pFKey->pNextFrom){ int j; |