1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Make sure all new statements begin life unexpired, even if they registered

functions or did other actions during preparation that would have expired
all statements.  Fix for ticket [25ee81271091]

FossilOrigin-Name: faa38c8724d3eebad97197bfa44d11e75cfe6c69
This commit is contained in:
drh
2011-06-27 00:01:22 +00:00
parent c7060c4dc5
commit aab910c459
3 changed files with 8 additions and 7 deletions

View File

@@ -1505,6 +1505,7 @@ void sqlite3VdbeMakeReady(
memset(zCsr, 0, zEnd-zCsr);
zCsr += (zCsr - (u8*)0)&7;
assert( EIGHT_BYTE_ALIGNMENT(zCsr) );
p->expired = 0;
/* Memory for registers, parameters, cursor, etc, is allocated in two
** passes. On the first pass, we try to reuse unused space at the