/ Check-in [faa38c87]
Login

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

Overview
Comment:Make sure all new statements begin life unexpired, even if they registered functions or did other actions during preparation that would have expired all statements. Fix for ticket [25ee81271091]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: faa38c8724d3eebad97197bfa44d11e75cfe6c69
User & Date: drh 2011-06-27 00:01:22
Context
2011-06-27
16:55
Add a case to permutations.test to run the veryquick test suite using sqlite3_prepare() instead of sqlite3_prepare_v2(). This helps to test the fix for bug [25ee812710]. check-in: d9f7993b user: dan tags: trunk
00:01
Make sure all new statements begin life unexpired, even if they registered functions or did other actions during preparation that would have expired all statements. Fix for ticket [25ee81271091] check-in: faa38c87 user: drh tags: trunk
2011-06-26
23:44
Modifications to the "like.test" script in order to expose the problem reported by ticket [25ee81271091ec27a8c5]. check-in: c4db5b64 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

  1501   1501     p->usesStmtJournal = (u8)(pParse->isMultiWrite && pParse->mayAbort);
  1502   1502     if( pParse->explain && nMem<10 ){
  1503   1503       nMem = 10;
  1504   1504     }
  1505   1505     memset(zCsr, 0, zEnd-zCsr);
  1506   1506     zCsr += (zCsr - (u8*)0)&7;
  1507   1507     assert( EIGHT_BYTE_ALIGNMENT(zCsr) );
         1508  +  p->expired = 0;
  1508   1509   
  1509   1510     /* Memory for registers, parameters, cursor, etc, is allocated in two
  1510   1511     ** passes.  On the first pass, we try to reuse unused space at the 
  1511   1512     ** end of the opcode array.  If we are unable to satisfy all memory
  1512   1513     ** requirements by reusing the opcode array tail, then the second
  1513   1514     ** pass will fill in the rest using a fresh allocation.  
  1514   1515     **