/ Check-in [597b33f6]
Login

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

Overview
Comment:Fix a bug in the SQLITE_PROFILE conditional compilation. (CVS 1152)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 597b33f696c0cde84529cd06a8f95a8ccc8f1e8e
User & Date: drh 2003-12-31 17:57:11
Context
2004-01-01
12:33
Remove unused code from the integrity_check logic. Ticket #545. (CVS 1153) check-in: ee51e205 user: drh tags: trunk
2003-12-31
17:57
Fix a bug in the SQLITE_PROFILE conditional compilation. (CVS 1152) check-in: 597b33f6 user: drh tags: trunk
17:25
Fix for ticket #542. (CVS 1151) check-in: 458cfa5b user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

   618    618     p->undoTransOnError = 0;
   619    619     p->xCallback = xCallback;
   620    620     p->pCbArg = pCallbackArg;
   621    621     p->popStack =  0;
   622    622     p->explain |= isExplain;
   623    623     p->magic = VDBE_MAGIC_RUN;
   624    624   #ifdef VDBE_PROFILE
   625         -  for(i=0; i<p->nOp; i++){
   626         -    p->aOp[i].cnt = 0;
   627         -    p->aOp[i].cycles = 0;
          625  +  {
          626  +    int i;
          627  +    for(i=0; i<p->nOp; i++){
          628  +      p->aOp[i].cnt = 0;
          629  +      p->aOp[i].cycles = 0;
          630  +    }
   628    631     }
   629    632   #endif
   630    633   }
   631    634   
   632    635   
   633    636   /*
   634    637   ** Remove any elements that remain on the sorter for the VDBE given.