/ Check-in [d145dc1c]
Login

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

Overview
Comment:Asserts added that verify that the code works correctly that ticket #1849 claims is wrong. (CVS 3254)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d145dc1c4bce403ec967bfd0024002d4de57f833
User & Date: drh 2006-06-15 13:22:23
Context
2006-06-15
14:31
Write database pages in sorted order to reduce file fragmentation. This is an experimental change. It is not clear if it will help any. It may well be removed in the future. (CVS 3255) check-in: fe3e70a7 user: drh tags: trunk
13:22
Asserts added that verify that the code works correctly that ticket #1849 claims is wrong. (CVS 3254) check-in: d145dc1c user: drh tags: trunk
10:41
Add tests (and modify test code) for writing to virtual tables. (CVS 3253) check-in: 6380a9b1 user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

   586    586       default: {
   587    587         zP3 = pOp->p3;
   588    588         if( zP3==0 || pOp->opcode==OP_Noop ){
   589    589           zP3 = "";
   590    590         }
   591    591       }
   592    592     }
          593  +  assert( zP3!=0 );
   593    594     return zP3;
   594    595   }
   595    596   #endif
   596    597   
   597    598   
   598    599   #if defined(VDBE_PROFILE) || defined(SQLITE_DEBUG)
   599    600   /*
................................................................................
   668    669       pMem->flags = MEM_Int;
   669    670       pMem->type = SQLITE_INTEGER;
   670    671       pMem->i = i;                                /* Program counter */
   671    672       pMem++;
   672    673   
   673    674       pMem->flags = MEM_Static|MEM_Str|MEM_Term;
   674    675       pMem->z = sqlite3OpcodeNames[pOp->opcode];  /* Opcode */
          676  +    assert( pMem->z!=0 );
   675    677       pMem->n = strlen(pMem->z);
   676    678       pMem->type = SQLITE_TEXT;
   677    679       pMem->enc = SQLITE_UTF8;
   678    680       pMem++;
   679    681   
   680    682       pMem->flags = MEM_Int;
   681    683       pMem->i = pOp->p1;                          /* P1 */
................................................................................
   685    687       pMem->flags = MEM_Int;
   686    688       pMem->i = pOp->p2;                          /* P2 */
   687    689       pMem->type = SQLITE_INTEGER;
   688    690       pMem++;
   689    691   
   690    692       pMem->flags = MEM_Ephem|MEM_Str|MEM_Term;   /* P3 */
   691    693       pMem->z = displayP3(pOp, pMem->zShort, sizeof(pMem->zShort));
          694  +    assert( pMem->z!=0 );
   692    695       pMem->n = strlen(pMem->z);
   693    696       pMem->type = SQLITE_TEXT;
   694    697       pMem->enc = SQLITE_UTF8;
   695    698   
   696    699       p->nResColumn = 5 - 2*(p->explain-1);
   697    700       p->pTos = pMem;
   698    701       p->rc = SQLITE_OK;