aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 4d125fdb6..d34912eb7 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -1059,7 +1059,7 @@ static void codeDeferredSeek(
x1 = pIdx->aiColumn[i];
x2 = sqlite3TableColumnToStorage(pTab, x1);
testcase( x1!=x2 );
- if( pIdx->aiColumn[i]>=0 ) ai[x2+1] = i+1;
+ if( x1>=0 ) ai[x2+1] = i+1;
}
sqlite3VdbeChangeP4(v, -1, (char*)ai, P4_INTARRAY);
}