1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +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

@@ -5579,6 +5579,7 @@ case OP_Insert: {
x.nZero = 0;
}
x.pKey = 0;
assert( BTREE_PREFORMAT==OPFLAG_PREFORMAT );
rc = sqlite3BtreeInsert(pC->uc.pCursor, &x,
(pOp->p5 & (OPFLAG_APPEND|OPFLAG_SAVEPOSITION|OPFLAG_PREFORMAT)),
seekResult