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

Tweaks to help facilitate structural test coverage.

FossilOrigin-Name: ff49a5f00b3aa83bdacc95a32d60527c740a6c09
This commit is contained in:
drh
2010-09-28 06:00:47 +00:00
parent 8b1db07f4e
commit 746fd9cc58
4 changed files with 16 additions and 13 deletions

View File

@@ -1143,6 +1143,8 @@ case OP_ResultRow: {
for(i=0; i<pOp->p2; i++){
assert( memIsValid(&pMem[i]) );
Deephemeralize(&pMem[i]);
assert( (pMem[i].flags & MEM_Ephem)==0
|| (pMem[i].flags & (MEM_Str|MEM_Blob))==0 );
sqlite3VdbeMemNulTerminate(&pMem[i]);
sqlite3VdbeMemStoreType(&pMem[i]);
REGISTER_TRACE(pOp->p1+i, &pMem[i]);