diff options
author | drh <> | 2024-04-24 11:51:51 +0000 |
---|---|---|
committer | drh <> | 2024-04-24 11:51:51 +0000 |
commit | 35b771e221a5e70d7dc758d6a797c63e80a98fb0 (patch) | |
tree | 0dccb90799e17263e2b4d06d46931ce122d18eac /src | |
parent | 5b27ecafbcf2dbdb7b407f8cf89703a463fb1da7 (diff) | |
download | sqlite-35b771e221a5e70d7dc758d6a797c63e80a98fb0.tar.gz sqlite-35b771e221a5e70d7dc758d6a797c63e80a98fb0.zip |
Add comments linking the assert() added in [cef4d9e3ba586735] to the places
where the precondition that the assert() tests are actually required.
FossilOrigin-Name: 6f0e7e195275aeb4aefd9da20348af35e3ef7f0a6b2768a34824daeace16eff1
Diffstat (limited to 'src')
-rw-r--r-- | src/printf.c | 2 | ||||
-rw-r--r-- | src/resolve.c | 2 | ||||
-rw-r--r-- | src/trigger.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/printf.c b/src/printf.c index eb22ee320..c0dcc5d0f 100644 --- a/src/printf.c +++ b/src/printf.c @@ -857,7 +857,7 @@ void sqlite3_str_vappendf( sqlite3_str_appendall(pAccum, pItem->zAlias); }else{ Select *pSel = pItem->pSelect; - assert( pSel!=0 ); + assert( pSel!=0 ); /* Because of tag-20240424-1 */ if( pSel->selFlags & SF_NestedFrom ){ sqlite3_str_appendf(pAccum, "(join-%u)", pSel->selId); }else if( pSel->selFlags & SF_MultiValue ){ diff --git a/src/resolve.c b/src/resolve.c index 81f3d9947..6a1d82606 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -1889,7 +1889,7 @@ static int resolveSelectStep(Walker *pWalker, Select *p){ if( pOuterNC ) pOuterNC->nNestedSelect++; for(i=0; i<p->pSrc->nSrc; i++){ SrcItem *pItem = &p->pSrc->a[i]; - assert( pItem->zName!=0 || pItem->pSelect!=0 ); + assert( pItem->zName!=0 || pItem->pSelect!=0 );/* Test of tag-20240424-1*/ if( pItem->pSelect && (pItem->pSelect->selFlags & SF_Resolved)==0 ){ int nRef = pOuterNC ? pOuterNC->nRef : 0; const char *zSavedContext = pParse->zAuthContext; diff --git a/src/trigger.c b/src/trigger.c index 813b2fac7..34537918c 100644 --- a/src/trigger.c +++ b/src/trigger.c @@ -987,7 +987,7 @@ static void codeReturningTrigger( sSelect.pSrc = &sFrom; sFrom.nSrc = 1; sFrom.a[0].pTab = pTab; - sFrom.a[0].zName = pTab->zName; + sFrom.a[0].zName = pTab->zName; /* tag-20240424-1 */ sFrom.a[0].iCursor = -1; sqlite3SelectPrep(pParse, &sSelect, 0); if( pParse->nErr==0 ){ |