aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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.