aboutsummaryrefslogtreecommitdiff
path: root/src/build.c
diff options
context:
space:
mode:
authordrh <>2021-10-07 23:04:50 +0000
committerdrh <>2021-10-07 23:04:50 +0000
commitdbfbb5a0c53d19d38249d1562a0f48286d697fb1 (patch)
tree14e84c347b8f9b982e0d99df15efe3d94136b39a /src/build.c
parent477572b9f1afc0d4f377554b64ad2c2c9e3146ac (diff)
downloadsqlite-dbfbb5a0c53d19d38249d1562a0f48286d697fb1.tar.gz
sqlite-dbfbb5a0c53d19d38249d1562a0f48286d697fb1.zip
New assert() statements to protect the u1 and u2 unions of SrcList.
FossilOrigin-Name: 9b91fbcfcc14048f7d0755d47d9b7f9212fa2eaa6f3c04f417fa16c3a47943bf
Diffstat (limited to 'src/build.c')
-rw-r--r--src/build.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/build.c b/src/build.c
index 58762bf37..1bf082712 100644
--- a/src/build.c
+++ b/src/build.c
@@ -4927,6 +4927,7 @@ void sqlite3SrcListIndexedBy(Parse *pParse, SrcList *p, Token *pIndexedBy){
}else{
pItem->u1.zIndexedBy = sqlite3NameFromToken(pParse->db, pIndexedBy);
pItem->fg.isIndexedBy = 1;
+ assert( pItem->fg.isCte==0 ); /* No collision on union u2 */
}
}
}