/ Check-in [d11a5798]
Login

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

Overview
Comment:Fix STAT3 so that it works with the new uninitialized register logic of the VDBE. Ticket [7bbfb7d4422ff]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d11a57985c394772043c63d4c2b534944be0a664
User & Date: drh 2011-12-11 02:30:35
Context
2011-12-11
21:51
Update comments describing the flattening optimization in select.c. check-in: dab4c137 user: drh tags: trunk
02:30
Fix STAT3 so that it works with the new uninitialized register logic of the VDBE. Ticket [7bbfb7d4422ff] check-in: d11a5798 user: drh tags: trunk
02:29
Fix harmless compiler warnings. check-in: 1e6a698a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/analyze.c.

   525    525         sqlite3OpenTable(pParse, iTabCur, iDb, pTab, OP_OpenRead);
   526    526       }
   527    527       sqlite3VdbeAddOp2(v, OP_Count, iIdxCur, regCount);
   528    528       sqlite3VdbeAddOp2(v, OP_Integer, SQLITE_STAT3_SAMPLES, regTemp1);
   529    529       sqlite3VdbeAddOp2(v, OP_Integer, 0, regNumEq);
   530    530       sqlite3VdbeAddOp2(v, OP_Integer, 0, regNumLt);
   531    531       sqlite3VdbeAddOp2(v, OP_Integer, -1, regNumDLt);
          532  +    sqlite3VdbeAddOp3(v, OP_Null, 0, regSample, regAccum);
   532    533       sqlite3VdbeAddOp4(v, OP_Function, 1, regCount, regAccum,
   533    534                         (char*)&stat3InitFuncdef, P4_FUNCDEF);
   534    535       sqlite3VdbeChangeP5(v, 2);
   535    536   #endif /* SQLITE_ENABLE_STAT3 */
   536    537   
   537    538       /* The block of memory cells initialized here is used as follows.
   538    539       **