aboutsummaryrefslogtreecommitdiff
path: root/src/where.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/where.c')
-rw-r--r--src/where.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/where.c b/src/where.c
index ec2d3847b..dc2b463f2 100644
--- a/src/where.c
+++ b/src/where.c
@@ -5379,6 +5379,7 @@ void sqlite3WhereEnd(WhereInfo *pWInfo){
x = pPk->aiColumn[x];
assert( x>=0 );
}else{
+ testcase( x!=sqlite3StorageColumnToTable(pTab,x) );
x = sqlite3StorageColumnToTable(pTab,x);
}
x = sqlite3TableColumnToIndex(pIdx, x);