/ Check-in [e3a929e4]
Login

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

Overview
Comment:Tweaks to improve testability.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e3a929e43180f41095cc2cd00c6b0781856a4474
User & Date: drh 2012-01-01 13:58:53
Context
2012-01-02
12:41
Fix the build so that it works when SQLITE_ENABLE_8_3_NAMES=1. check-in: d9761f15 user: drh tags: trunk
2012-01-01
13:58
Tweaks to improve testability. check-in: e3a929e4 user: drh tags: trunk
2011-12-31
21:51
Fix typos in comments. No changes to code. check-in: 6827338e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  1483   1483     db = p->db;
  1484   1484     assert( db->mallocFailed==0 );
  1485   1485     nVar = pParse->nVar;
  1486   1486     nMem = pParse->nMem;
  1487   1487     nCursor = pParse->nTab;
  1488   1488     nArg = pParse->nMaxArg;
  1489   1489     nOnce = pParse->nOnce;
         1490  +  if( nOnce==0 ) nOnce = 1; /* Ensure at least one byte in p->aOnceFlag[] */
  1490   1491     
  1491   1492     /* For each cursor required, also allocate a memory cell. Memory
  1492   1493     ** cells (nMem+1-nCursor)..nMem, inclusive, will never be used by
  1493   1494     ** the vdbe program. Instead they are used to allocate space for
  1494   1495     ** VdbeCursor/BtCursor structures. The blob of memory associated with 
  1495   1496     ** cursor 0 is stored in memory cell nMem. Memory cell (nMem-1)
  1496   1497     ** stores the blob of memory associated with cursor 1, etc.

Changes to src/wal.c.

  2853   2853     ** be in use by existing readers is being overwritten.
  2854   2854     */
  2855   2855     iFrame = pWal->hdr.mxFrame;
  2856   2856     for(p=pList; p && rc==SQLITE_OK; p=p->pDirty){
  2857   2857       iFrame++;
  2858   2858       rc = walIndexAppend(pWal, iFrame, p->pgno);
  2859   2859     }
  2860         -  while( nExtra>0 && rc==SQLITE_OK ){
         2860  +  while( rc==SQLITE_OK && nExtra>0 ){
  2861   2861       iFrame++;
  2862   2862       nExtra--;
  2863   2863       rc = walIndexAppend(pWal, iFrame, pLast->pgno);
  2864   2864     }
  2865   2865   
  2866   2866     if( rc==SQLITE_OK ){
  2867   2867       /* Update the private copy of the header. */