/ Check-in [80704a16]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Make the testcase() macro added in the previous check-in reachable for testing.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 80704a16f6dbbeacc65fa36a3623df10292a28aeacf9e2c1d2891258479e3b89
User & Date: drh 2019-04-07 18:21:12
Context
2019-04-09
19:53
Add test/wapptest.tcl, a wapp alternative to releasetest.tcl. check-in: a4af0c2f user: dan tags: wapptest
01:26
Use an unsigned integer to count free pages in btree.c:freePage2(). check-in: 88204085 user: drh tags: trunk
2019-04-07
18:21
Make the testcase() macro added in the previous check-in reachable for testing. check-in: 80704a16 user: drh tags: trunk
18:04
Fix a faulty assert() in the sqlite3VdbeMemExpandBlob() routine. check-in: df58774e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbemem.c.

   298    298   ** blob stored in dynamically allocated space.
   299    299   */
   300    300   #ifndef SQLITE_OMIT_INCRBLOB
   301    301   int sqlite3VdbeMemExpandBlob(Mem *pMem){
   302    302     int nByte;
   303    303     assert( pMem->flags & MEM_Zero );
   304    304     assert( (pMem->flags&MEM_Blob)!=0 || MemNullNochng(pMem) );
   305         -  testcase( MemNullNochng(pMem) )
          305  +  testcase( sqlite3_value_nochange(pMem) );
   306    306     assert( !sqlite3VdbeMemIsRowSet(pMem) );
   307    307     assert( pMem->db==0 || sqlite3_mutex_held(pMem->db->mutex) );
   308    308   
   309    309     /* Set nByte to the number of bytes required to store the expanded blob. */
   310    310     nByte = pMem->n + pMem->u.nZero;
   311    311     if( nByte<=0 ){
   312    312       nByte = 1;