aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-04-18 19:48:31 +0000
committerdrh <>2022-04-18 19:48:31 +0000
commitf80bb195b3ad5328a74455b34216b1ce0c719ff5 (patch)
tree9c7f3f12ac752fbc5a6969d0ab4c76f27ad3d724 /src
parent7466d5665af4965e4fc8b78df89b4d310d63b752 (diff)
downloadsqlite-f80bb195b3ad5328a74455b34216b1ce0c719ff5.tar.gz
sqlite-f80bb195b3ad5328a74455b34216b1ce0c719ff5.zip
Disable the unused EU4_EXPR mode for the IdList object.
FossilOrigin-Name: 5bcf4aa3bf6b1b9f47142bc37683bb3bf0adeffd052d07449af7c9b415add052
Diffstat (limited to 'src')
-rw-r--r--src/build.c4
-rw-r--r--src/sqliteInt.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/src/build.c b/src/build.c
index 126897c85..1c632c94e 100644
--- a/src/build.c
+++ b/src/build.c
@@ -4695,12 +4695,10 @@ IdList *sqlite3IdListAppend(Parse *pParse, IdList *pList, Token *pToken){
*/
void sqlite3IdListDelete(sqlite3 *db, IdList *pList){
int i;
- int delExpr;
if( pList==0 ) return;
- delExpr = pList->eU4==EU4_EXPR;
+ assert( pList->eU4!=EU4_EXPR ); /* EU4_EXPR mode is not currently used */
for(i=0; i<pList->nId; i++){
sqlite3DbFree(db, pList->a[i].zName);
- if( delExpr ) sqlite3ExprDelete(db, pList->a[i].u4.pExpr);
}
sqlite3DbFreeNN(db, pList);
}
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index bc618df7d..9363adbb9 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3044,7 +3044,7 @@ struct IdList {
char *zName; /* Name of the identifier */
union {
int idx; /* Index in some Table.aCol[] of a column named zName */
- Expr *pExpr; /* Expr to implement a USING variable */
+ Expr *pExpr; /* Expr to implement a USING variable -- NOT USED */
} u4;
} a[1];
};
@@ -3055,7 +3055,7 @@ struct IdList {
*/
#define EU4_NONE 0 /* Does not use IdList.a.u4 */
#define EU4_IDX 1 /* Uses IdList.a.u4.idx */
-#define EU4_EXPR 2 /* Uses IdList.a.u4.pExpr */
+#define EU4_EXPR 2 /* Uses IdList.a.u4.pExpr -- NOT CURRENTLY USED */
/*
** The SrcItem object represents a single term in the FROM clause of a query.