diff options
author | drh <> | 2023-07-21 18:09:07 +0000 |
---|---|---|
committer | drh <> | 2023-07-21 18:09:07 +0000 |
commit | 569700a72e58a1cf9efc7fb743768a64cfd77d3c (patch) | |
tree | a364da6db67db8dc3bd718a99e8d9c1f313593f0 /src/vdbeapi.c | |
parent | eee8687a9ff50465a720298bd8d50cbd85bb0fe7 (diff) | |
download | sqlite-569700a72e58a1cf9efc7fb743768a64cfd77d3c.tar.gz sqlite-569700a72e58a1cf9efc7fb743768a64cfd77d3c.zip |
Further improvements to large string handling in relation to JSON.
FossilOrigin-Name: 1e5df0aa3dae5cadbf1d07c718ae2a5212543300b68e49d35e8c96855a7f619c
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r-- | src/vdbeapi.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c index 079fb3976..92bf38160 100644 --- a/src/vdbeapi.c +++ b/src/vdbeapi.c @@ -514,15 +514,7 @@ void sqlite3_result_text64( (void)invokeValueDestructor(z, xDel, pCtx); }else{ setResultStrOrError(pCtx, z, (int)n, enc, xDel); - if( xDel==sqlite3_free && enc==SQLITE_UTF8 ){ - Mem *pOut = pCtx->pOut; - if( pOut->z==z - && sqlite3_msize(pOut->z) >= (sqlite3_uint64)(pOut->n+1) - && pOut->z[n]==0 - ){ - pOut->flags |= MEM_Term; - } - } + sqlite3VdbeMemZeroTerminateIfAble(pCtx->pOut); } } #ifndef SQLITE_OMIT_UTF16 |