mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Further improvements to large string handling in relation to JSON.
FossilOrigin-Name: 1e5df0aa3dae5cadbf1d07c718ae2a5212543300b68e49d35e8c96855a7f619c
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user