/ Check-in [48f6a331]
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:Remove a C++ism that snuck in on one of the reason changes. (CVS 2676)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 48f6a331efea419fe948cd366f9c60ae41edddfd
User & Date: drh 2005-09-08 19:01:06
Context
2005-09-08
19:45
A SUM() of all NULLs returns NULL. A SUM() of nothing return 0. A SUM() of a mixture of NULLs and numbers returns the sum of the numbers. Ticket #1413. (CVS 2677) check-in: 2e6230ed user: drh tags: trunk
19:01
Remove a C++ism that snuck in on one of the reason changes. (CVS 2676) check-in: 48f6a331 user: drh tags: trunk
14:17
Remove a few unused variables detected by Borland C. Ticket #1412. (CVS 2675) check-in: cdfe372a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeapi.c.

   253    253   
   254    254   /*
   255    255   ** Allocate or return the aggregate context for a user function.  A new
   256    256   ** context is allocated on the first call.  Subsequent calls return the
   257    257   ** same context that was returned on prior calls.
   258    258   */
   259    259   void *sqlite3_aggregate_context(sqlite3_context *p, int nByte){
   260         -  assert( p && p->pFunc && p->pFunc->xStep );
   261    260     Mem *pMem = p->pMem;
          261  +  assert( p && p->pFunc && p->pFunc->xStep );
   262    262     if( (pMem->flags & MEM_Agg)==0 ){
   263    263       if( nByte==0 ){
   264    264         assert( pMem->flags==MEM_Null );
   265    265         pMem->z = 0;
   266    266       }else{
   267    267         pMem->flags = MEM_Agg;
   268    268         pMem->xDel = sqlite3FreeX;