aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <Dan Kennedy>2020-12-11 19:01:24 +0000
committerdan <Dan Kennedy>2020-12-11 19:01:24 +0000
commit855aed19e224ebb5328b9fbffbf69cb8161630e8 (patch)
tree0aa7883016345a81a130047e86d7d0a8fcab5f92 /src
parent771087833330bbb5f4081f61e67fb22da608ff75 (diff)
downloadsqlite-855aed19e224ebb5328b9fbffbf69cb8161630e8.tar.gz
sqlite-855aed19e224ebb5328b9fbffbf69cb8161630e8.zip
Fix an assert() broken by recent changes to vacuum.
FossilOrigin-Name: dd058da85ca54ae70e26cb0bdc75ff42998d4a8b29a5e2dcac44ee0e45776a85
Diffstat (limited to 'src')
-rw-r--r--src/btree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree.c b/src/btree.c
index 3ed365c5f..1a151fe4e 100644
--- a/src/btree.c
+++ b/src/btree.c
@@ -8697,7 +8697,7 @@ int sqlite3BtreeInsert(
** keys with no associated data. If the cursor was opened expecting an
** intkey table, the caller should be inserting integer keys with a
** blob of associated data. */
- assert( (pX->pKey==0)==(pCur->pKeyInfo==0) || (flags & BTREE_PREFORMAT) );
+ assert( (flags & BTREE_PREFORMAT) || (pX->pKey==0)==(pCur->pKeyInfo==0) );
/* Save the positions of any other cursors open on this table.
**