mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Fix a register allocation problem in PRAGMA integrity_check that caused
the same register to be used for two different purposes on the first ATTACHed database if the schema for the ATTACHed database was noticable more complex than the schema for the first database. Fix for ticket [a4e06e75a9ab61a1]. FossilOrigin-Name: 253945d480b052bfe311888022b5eb0be91c8c80cda05036e58207d57520262c
This commit is contained in:
@@ -5255,8 +5255,8 @@ void sqlite3ClearTempRegCache(Parse *pParse){
|
||||
int sqlite3NoTempsInRange(Parse *pParse, int iFirst, int iLast){
|
||||
int i;
|
||||
if( pParse->nRangeReg>0
|
||||
&& pParse->iRangeReg+pParse->nRangeReg<iLast
|
||||
&& pParse->iRangeReg>=iFirst
|
||||
&& pParse->iRangeReg+pParse->nRangeReg > iFirst
|
||||
&& pParse->iRangeReg <= iLast
|
||||
){
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user