/ Check-in [9650d796]
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:Allow the sqlite3VdbeJumpHere() routine to accept a negative or zero address if a prior memory allocation error has occurred. The new sqlite_stat3 logic needs this.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | stat3-enhancement
Files: files | file ages | folders
SHA1: 9650d7962804d61f56cac944ff9bb2c7bc111957
User & Date: drh 2011-08-16 02:07:04
Context
2011-08-16
17:06
Fix a few harmless compiler warnings. Add SQLITE_ENABLE_STAT3 to the standard compiler warning script. check-in: 3d68f9af user: drh tags: stat3-enhancement
02:07
Allow the sqlite3VdbeJumpHere() routine to accept a negative or zero address if a prior memory allocation error has occurred. The new sqlite_stat3 logic needs this. check-in: 9650d796 user: drh tags: stat3-enhancement
01:15
Add the analyze8.test test module for sqlite_stat3. check-in: 2c83ac89 user: drh tags: stat3-enhancement
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

   568    568   }
   569    569   
   570    570   /*
   571    571   ** Change the P2 operand of instruction addr so that it points to
   572    572   ** the address of the next instruction to be coded.
   573    573   */
   574    574   void sqlite3VdbeJumpHere(Vdbe *p, int addr){
   575         -  assert( addr>=0 );
   576         -  sqlite3VdbeChangeP2(p, addr, p->nOp);
          575  +  assert( addr>=0 || p->db->mallocFailed );
          576  +  if( addr>=0 ) sqlite3VdbeChangeP2(p, addr, p->nOp);
   577    577   }
   578    578   
   579    579   
   580    580   /*
   581    581   ** If the input FuncDef structure is ephemeral, then free it.  If
   582    582   ** the FuncDef is not ephermal, then do nothing.
   583    583   */