mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-16 23:02:26 +03:00
If an OOM occurs while setting the page size for the TEMP database, be sure
that error gets reported back out to the interface layer. FossilOrigin-Name: 6487e70a1e18bb01ee692e250b41c8652e34a87c
This commit is contained in:
@@ -3421,6 +3421,7 @@ int sqlite3OpenTempDatabase(Parse *pParse){
|
||||
assert( db->aDb[1].pSchema );
|
||||
if( SQLITE_NOMEM==sqlite3BtreeSetPageSize(pBt, db->nextPagesize, -1, 0) ){
|
||||
db->mallocFailed = 1;
|
||||
return 1;
|
||||
}
|
||||
sqlite3PagerJournalMode(sqlite3BtreePager(pBt), db->dfltJournalMode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user