1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Improved interface to the Mem object handling. Small size reduction and

performance increase.

FossilOrigin-Name: 4e437844322cc20eef92928b53fa6b37eded586e
This commit is contained in:
drh
2014-09-17 14:52:46 +00:00
parent 6b478bcd9e
commit 0725cabe3a
6 changed files with 63 additions and 68 deletions

View File

@@ -662,8 +662,7 @@ static SQLITE_NOINLINE void *createAggContext(sqlite3_context *p, int nByte){
Mem *pMem = p->pMem;
assert( (pMem->flags & MEM_Agg)==0 );
if( nByte<=0 ){
sqlite3VdbeMemReleaseExternal(pMem);
pMem->flags = MEM_Null;
sqlite3VdbeMemSetNull(pMem);
pMem->z = 0;
}else{
sqlite3VdbeMemGrow(pMem, nByte, 0);