/ Check-in [4cae93f8]
Login

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

Overview
Comment:Avoid a confusing (though correct) argument to the sqlite3_result_blob() function in the implementation of ANALYZE.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 4cae93f8ae8fb3fe38fd5dc7d3a5ea0d11552841
User & Date: drh 2014-09-01 22:34:54
Context
2014-09-01
23:06
Update comments in the ANALYZE command that describe how the Stat4Accum objecct is passed around within the VDBE. No changes to functional code. check-in: 9779c7a9 user: drh tags: trunk
22:34
Avoid a confusing (though correct) argument to the sqlite3_result_blob() function in the implementation of ANALYZE. check-in: 4cae93f8 user: drh tags: trunk
19:29
For sqlite3_win32_is_nt(), assume WinRT is NT-based and revise #ifdef ordering to prefer the ANSI version of GetVersionEx, when available. check-in: be0a0372 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/analyze.c.

   463    463       for(i=0; i<nCol; i++){
   464    464         p->aBest[i].iCol = i;
   465    465       }
   466    466     }
   467    467   #endif
   468    468   
   469    469     /* Return a pointer to the allocated object to the caller */
   470         -  sqlite3_result_blob(context, p, sizeof(p), stat4Destructor);
          470  +  sqlite3_result_blob(context, p, sizeof(*p), stat4Destructor);
   471    471   }
   472    472   static const FuncDef statInitFuncdef = {
   473    473     2+IsStat34,      /* nArg */
   474    474     SQLITE_UTF8,     /* funcFlags */
   475    475     0,               /* pUserData */
   476    476     0,               /* pNext */
   477    477     statInit,        /* xFunc */