1
0
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:
drh
2010-01-31 14:18:21 +00:00
parent 959dda6d94
commit 7c9c98684c
3 changed files with 19 additions and 8 deletions

View File

@@ -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);
}