/ Check-in [9d3ef3bd]
Login

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

Overview
Comment:Fix a harmless uninitialized variable warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nextgen-query-plan-exp
Files: files | file ages | folders
SHA1: 9d3ef3bd2c6281784a537a22a87279f420649935
User & Date: drh 2013-06-19 13:32:46
Context
2013-06-19
13:59
Additional compiler warning fixes. check-in: 8d2ae8e2 user: drh tags: nextgen-query-plan-exp
13:32
Fix a harmless uninitialized variable warning. check-in: 9d3ef3bd user: drh tags: nextgen-query-plan-exp
12:34
Simplify and add invariants to the WhereLoop merging logic inside of whereLoopInsert(). check-in: 8f27f35f user: drh tags: nextgen-query-plan-exp
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/where.c.

  4905   4905     u8 isMatch;           /* iColumn matches a term of the ORDER BY clause */
  4906   4906     u16 nColumn;          /* Number of columns in pIndex */
  4907   4907     u16 nOrderBy;         /* Number terms in the ORDER BY clause */
  4908   4908     int iLoop;            /* Index of WhereLoop in pPath being processed */
  4909   4909     int i, j;             /* Loop counters */
  4910   4910     int iCur;             /* Cursor number for current WhereLoop */
  4911   4911     int iColumn;          /* A column number within table iCur */
  4912         -  WhereLoop *pLoop;     /* Current WhereLoop being processed. */
         4912  +  WhereLoop *pLoop = 0; /* Current WhereLoop being processed. */
  4913   4913     WhereTerm *pTerm;     /* A single term of the WHERE clause */
  4914   4914     Expr *pOBExpr;        /* An expression from the ORDER BY clause */
  4915   4915     CollSeq *pColl;       /* COLLATE function from an ORDER BY clause term */
  4916   4916     Index *pIndex;        /* The index associated with pLoop */
  4917   4917     sqlite3 *db = pWInfo->pParse->db;  /* Database connection */
  4918   4918     Bitmask obSat = 0;    /* Mask of ORDER BY terms satisfied so far */
  4919   4919     Bitmask obDone;       /* Mask of all ORDER BY terms */