aboutsummaryrefslogtreecommitdiff
path: root/src/fkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fkey.c')
-rw-r--r--src/fkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fkey.c b/src/fkey.c
index 95f1d632c..fc39d2fea 100644
--- a/src/fkey.c
+++ b/src/fkey.c
@@ -544,7 +544,7 @@ static void fkScanChildren(
** is taking place as part of a DELETE operation (operation D.2), omit the
** row being deleted from the scan by adding ($rowid != rowid) to the WHERE
** clause, where $rowid is the rowid of the row being deleted. */
- if( pTab==pFKey->pFrom && nIncr>0 ){
+ if( pTab==pFKey->pFrom && nIncr>0 && HasRowid(pTab) /*FIXME*/ ){
Expr *pEq; /* Expression (pLeft = pRight) */
Expr *pLeft; /* Value from parent table row */
Expr *pRight; /* Column ref to child table */