1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

New assert()s confirm that BTREE_PREFORMAT must be the same value as

OPFLAG_PREFORMAT.

FossilOrigin-Name: f40bf2c642643ae61d331e8d4815f601224fa258ab34344c6756966163a89f4a
This commit is contained in:
drh
2022-11-19 20:10:55 +00:00
parent 5a1d659d79
commit ecba10730d
4 changed files with 10 additions and 8 deletions

View File

@@ -9172,6 +9172,7 @@ int sqlite3BtreeInsert(
assert( pPage->isInit || CORRUPT_DB );
newCell = pBt->pTmpSpace;
assert( newCell!=0 );
assert( BTREE_PREFORMAT==OPFLAG_PREFORMAT );
if( flags & BTREE_PREFORMAT ){
rc = SQLITE_OK;
szNew = pBt->nPreformatSize;