/ Check-in [34343c4b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a harmless compiler warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 34343c4b0657767f2676a2a9feb670cf000824e3eadfb1a6d87b57404191d8f9
User & Date: drh 2019-11-22 11:49:40
Context
2019-11-23
08:36
Fix a memory leak in fts5 error handling code. check-in: de6637e1 user: dan tags: trunk
2019-11-22
17:37
Extend the json-path mechanism with array indexes of the form "#" or "#-n" for some positive number "n", to reference the end of an array. Closed-Leaf check-in: 35ed68a6 user: drh tags: json-path-enhancement
11:49
Fix a harmless compiler warning. check-in: 34343c4b user: drh tags: trunk
11:47
Fix an indentation error and improve the placement of an assert() based on a tweet from Yuri Kotov. check-in: e6314e38 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/resolve.c.

569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
    testcase( n==BMS-1 );
    if( n>=BMS ){
      n = BMS-1;
    }
    assert( pExpr->y.pTab!=0 );
    assert( pMatch->iCursor==pExpr->iTable );
    if( pExpr->y.pTab->tabFlags & TF_HasGenerated ){
      Column *pCol = pExpr->y.pTab->aCol + pExpr->iColumn;
      if( pCol->colFlags & COLFLAG_GENERATED ) n = BMS-1;
    }
    pMatch->colUsed |= ((Bitmask)1)<<n;
  }

  /* Clean up and return
  */
  sqlite3ExprDelete(db, pExpr->pLeft);







|
|







569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
    testcase( n==BMS-1 );
    if( n>=BMS ){
      n = BMS-1;
    }
    assert( pExpr->y.pTab!=0 );
    assert( pMatch->iCursor==pExpr->iTable );
    if( pExpr->y.pTab->tabFlags & TF_HasGenerated ){
      Column *pColumn = pExpr->y.pTab->aCol + pExpr->iColumn;
      if( pColumn->colFlags & COLFLAG_GENERATED ) n = BMS-1;
    }
    pMatch->colUsed |= ((Bitmask)1)<<n;
  }

  /* Clean up and return
  */
  sqlite3ExprDelete(db, pExpr->pLeft);