1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Rename a local variable to avoid masking a function parameter and thus

causing a harmless compiler warning.

FossilOrigin-Name: f065cf003bd2a3a580cb5b9fa2eacd8be075fe8c2bbc5688e9a9406abbfb3804
This commit is contained in:
drh
2019-12-09 19:44:45 +00:00
parent 2bc5cf9ae9
commit 0a8764ad7a
3 changed files with 14 additions and 15 deletions

View File

@@ -565,16 +565,15 @@ static int lookupName(
*/
if( pExpr->iColumn>=0 && pMatch!=0 ){
int n = pExpr->iColumn;
Table *pTab;
pTab = pExpr->y.pTab;
assert( pTab!=0 );
Table *pExTab = pExpr->y.pTab;
assert( pExTab!=0 );
assert( pMatch->iCursor==pExpr->iTable );
if( (pTab->tabFlags & TF_HasGenerated)!=0
&& (pTab->aCol[n].colFlags & COLFLAG_GENERATED)!=0
if( (pExTab->tabFlags & TF_HasGenerated)!=0
&& (pExTab->aCol[n].colFlags & COLFLAG_GENERATED)!=0
){
testcase( pTab->nCol==BMS-1 );
testcase( pTab->nCol==BMS );
pMatch->colUsed = pTab->nCol>=BMS ? ALLBITS : MASKBIT(pTab->nCol)-1;
testcase( pExTab->nCol==BMS-1 );
testcase( pExTab->nCol==BMS );
pMatch->colUsed = pExTab->nCol>=BMS ? ALLBITS : MASKBIT(pExTab->nCol)-1;
}else{
testcase( n==BMS-1 );
testcase( n==BMS );