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

Avoid unnecessary Mem initializations when generating a new sqlite3_stmt

object.

FossilOrigin-Name: 47ae1cda8dc255d100aeb8cb90ea4c9e449509be
This commit is contained in:
drh
2016-09-30 17:46:44 +00:00
parent dd3bfe8648
commit 2a1df937ab
5 changed files with 44 additions and 35 deletions

View File

@@ -1136,11 +1136,13 @@ case OP_Null: { /* out2 */
cnt = pOp->p3-pOp->p2;
assert( pOp->p3<=(p->nMem+1 - p->nCursor) );
pOut->flags = nullFlag = pOp->p1 ? (MEM_Null|MEM_Cleared) : MEM_Null;
pOut->n = 0;
while( cnt>0 ){
pOut++;
memAboutToChange(p, pOut);
sqlite3VdbeMemSetNull(pOut);
pOut->flags = nullFlag;
pOut->n = 0;
cnt--;
}
break;