/ Check-in [7248e347]
Login

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

Overview
Comment:Formatting change on a multi-line conditional, for improved clarity. No logic changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7248e3476511ecd317f54edcfe1e87443bfdcc1b10c89c7734eefcabafec6c0b
User & Date: drh 2019-10-15 19:01:55
Context
2019-10-16
14:56
If an AFTER DELETE trigger fires when a conflict row is deleted by REPLACE conflict resolution, make sure the conflict really has been resolved and that the trigger did not recreate the row before continuing. Ticket [a8a4847a2d96f5de] check-in: eea1e7aa user: drh tags: trunk
12:18
Initial experimental code for generated column support. Non-functional. check-in: 11d472c1 user: drh tags: generated-columns
2019-10-15
19:01
Formatting change on a multi-line conditional, for improved clarity. No logic changes. check-in: 7248e347 user: drh tags: trunk
2019-10-14
20:32
Futher improvements to the IN operator for row-values on virtual tables. check-in: bc751fb6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/wherecode.c.

  1304   1304       pLevel->p2 = sqlite3VdbeCurrentAddr(v);
  1305   1305       iIn = pLevel->u.in.nIn;
  1306   1306       for(j=nConstraint-1; j>=0; j--){
  1307   1307         pTerm = pLoop->aLTerm[j];
  1308   1308         if( (pTerm->eOperator & WO_IN)!=0 ) iIn--;
  1309   1309         if( j<16 && (pLoop->u.vtab.omitMask>>j)&1 ){
  1310   1310           disableTerm(pLevel, pTerm);
  1311         -      }else if( (pTerm->eOperator & WO_IN)!=0 && 
  1312         -          sqlite3ExprVectorSize(pTerm->pExpr->pLeft)==1
         1311  +      }else if( (pTerm->eOperator & WO_IN)!=0
         1312  +        && sqlite3ExprVectorSize(pTerm->pExpr->pLeft)==1
  1313   1313         ){
  1314   1314           Expr *pCompare;  /* The comparison operator */
  1315   1315           Expr *pRight;    /* RHS of the comparison */
  1316   1316           VdbeOp *pOp;     /* Opcode to access the value of the IN constraint */
  1317   1317   
  1318   1318           /* Reload the constraint value into reg[iReg+j+2].  The same value
  1319   1319           ** was loaded into the same register prior to the OP_VFilter, but