1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Add the sqlite3_set_auxdata() and sqlite3_get_auxdata() APIs. (CVS 1532)

FossilOrigin-Name: c2899b437366d879258ab4f6ae47868441010eca
This commit is contained in:
danielk1977
2004-06-05 10:22:17 +00:00
parent 2a02e33950
commit 682f68b020
9 changed files with 150 additions and 22 deletions

View File

@@ -1234,6 +1234,16 @@ void sqlite3VdbeDelete(Vdbe *p){
if( pOp->p3type==P3_DYNAMIC || pOp->p3type==P3_KEYINFO ){
sqliteFree(pOp->p3);
}
if( pOp->p3type==P3_VDBEFUNC ){
VdbeFunc *pVdbeFunc = (VdbeFunc *)pOp->p3;
for(i=0; i<pVdbeFunc->nAux; i++){
struct AuxData *pAuxData = &pVdbeFunc->apAux[i].pAux;
if( pAuxData->pAux && pAuxData->xDelete ){
pAuxData->xDelete(pAuxData->pAux);
}
}
sqliteFree(pVdbeFunc);
}
#ifndef NDEBUG
sqliteFree(pOp->zComment);
#endif