diff options
author | drh <drh@noemail.net> | 2017-07-27 15:53:24 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-07-27 15:53:24 +0000 |
commit | a0024e6c99dca51ebf12e4c49c17ac22a5e98f6b (patch) | |
tree | 9254828f7b020293baaf427056e0202081ef5525 /src/vdbe.c | |
parent | 22930062d54a60193ee0624182961df0e6442e4b (diff) | |
download | sqlite-a0024e6c99dca51ebf12e4c49c17ac22a5e98f6b.tar.gz sqlite-a0024e6c99dca51ebf12e4c49c17ac22a5e98f6b.zip |
Improved implementation of the destructor on pointer-passing interfaces.
FossilOrigin-Name: 601ad6795927fff8c3cc1711a2fd90912499573e94aa5bc8f18cbd4b89778f58
Diffstat (limited to 'src/vdbe.c')
-rw-r--r-- | src/vdbe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vdbe.c b/src/vdbe.c index 7e105940f..3e6231e0d 100644 --- a/src/vdbe.c +++ b/src/vdbe.c @@ -416,7 +416,7 @@ void sqlite3VdbeMemPrettyPrint(Mem *pMem, char *zBuf){ else *zCsr++ = z; } *(zCsr++) = ']'; - if( (f & (MEM_Zero|MEM_Blob))==(MEM_Zero|MEM_Blob) ){ + if( f & MEM_Zero ){ sqlite3_snprintf(100, zCsr,"+%dz",pMem->u.nZero); zCsr += sqlite3Strlen30(zCsr); } @@ -2735,7 +2735,7 @@ case OP_MakeRecord: { do{ assert( memIsValid(pRec) ); pRec->uTemp = serial_type = sqlite3VdbeSerialType(pRec, file_format, &len); - if( (pRec->flags & MEM_Zero)!=0 && (pRec->flags & MEM_Blob)!=0 ){ + if( pRec->flags & MEM_Zero ){ if( nData ){ if( sqlite3VdbeMemExpandBlob(pRec) ) goto no_mem; }else{ @@ -4411,7 +4411,7 @@ case OP_InsertInt: { x.nData = pData->n; } seekResult = ((pOp->p5 & OPFLAG_USESEEKRESULT) ? pC->seekResult : 0); - if( (pData->flags & MEM_Zero)!=0 && (pData->flags & MEM_Blob)!=0 ){ + if( pData->flags & MEM_Zero ){ x.nZero = pData->u.nZero; }else{ x.nZero = 0; |