Index: src/vdbe.c ================================================================== --- src/vdbe.c +++ src/vdbe.c @@ -28,11 +28,11 @@ ** Most of the code in this file is taken up by the sqliteVdbeExec() ** function which does the work of interpreting a VDBE program. ** But other routines are also provided to help in building up ** a program instruction by instruction. ** -** $Id: vdbe.c,v 1.134 2002/03/10 21:21:00 drh Exp $ +** $Id: vdbe.c,v 1.135 2002/03/18 13:03:55 drh Exp $ */ #include "sqliteInt.h" #include /* @@ -658,10 +658,11 @@ assert( pAgg->apFunc!=0 ); for(i=0; inMem; i++){ Mem *pMem = &pElem->aMem[i]; if( pAgg->apFunc[i] && (pMem->s.flags & STK_AggCtx)!=0 ){ sqlite_func ctx; + ctx.pFunc = pAgg->apFunc[i]; ctx.s.flags = STK_Null; ctx.z = 0; ctx.pAgg = pMem->z; ctx.cnt = pMem->s.i; ctx.isStep = 0;