From 4029629a86e20db792d33eaa250047204449ad46 Mon Sep 17 00:00:00 2001 From: Joe Mistachkin Date: Mon, 4 Sep 2017 19:31:54 +0000 Subject: [PATCH] Use the SQLITE_CORRUPT_BKPT return code in a couple more places. --- src/btree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/btree.c b/src/btree.c index 3ca0037e9d..a1b125dda8 100644 --- a/src/btree.c +++ b/src/btree.c @@ -775,7 +775,7 @@ static int btreeMoveto( if( pIdxKey==0 ) return SQLITE_NOMEM_BKPT; sqlite3VdbeRecordUnpack(pCur->pKeyInfo, (int)nKey, pKey, pIdxKey); if( pIdxKey->nField==0 ){ - rc = SQLITE_CORRUPT; + rc = SQLITE_CORRUPT_BKPT; goto moveto_done; } }else{ @@ -5388,7 +5388,7 @@ int sqlite3BtreeMovetoUnpacked( *pRes = 0; rc = SQLITE_OK; pCur->ix = (u16)idx; - if( pIdxKey->errCode ) rc = SQLITE_CORRUPT; + if( pIdxKey->errCode ) rc = SQLITE_CORRUPT_BKPT; goto moveto_finish; } if( lwr>upr ) break; -- 2.11.4.GIT