mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Fix a harmless (false-positive) unused variable compiler warning on MSVC.
FossilOrigin-Name: 63b04c63de680261a0d3eaf27154a1e8e77e3e166c3f2dbaea985603991c74f7
This commit is contained in:
13
src/vdbe.c
13
src/vdbe.c
@@ -4994,15 +4994,14 @@ case OP_Found: { /* jump, in3 */
|
||||
#ifdef SQLITE_DEBUG
|
||||
pC->seekOp = pOp->opcode;
|
||||
#endif
|
||||
pIn3 = &aMem[pOp->p3];
|
||||
r.aMem = &aMem[pOp->p3];
|
||||
assert( pC->eCurType==CURTYPE_BTREE );
|
||||
assert( pC->uc.pCursor!=0 );
|
||||
assert( pC->isTable==0 );
|
||||
if( pOp->p4.i>0 ){
|
||||
r.nField = (u16)pOp->p4.i;
|
||||
if( r.nField>0 ){
|
||||
/* Key values in an array of registers */
|
||||
r.nField = (u16)pOp->p4.i;
|
||||
r.pKeyInfo = pC->pKeyInfo;
|
||||
r.aMem = pIn3;
|
||||
r.default_rc = 0;
|
||||
#ifdef SQLITE_DEBUG
|
||||
for(ii=0; ii<r.nField; ii++){
|
||||
@@ -5014,14 +5013,14 @@ case OP_Found: { /* jump, in3 */
|
||||
rc = sqlite3BtreeIndexMoveto(pC->uc.pCursor, &r, &pC->seekResult);
|
||||
}else{
|
||||
/* Composite key generated by OP_MakeRecord */
|
||||
assert( pIn3->flags & MEM_Blob );
|
||||
assert( r.aMem->flags & MEM_Blob );
|
||||
assert( pOp->opcode!=OP_NoConflict );
|
||||
rc = ExpandBlob(pIn3);
|
||||
rc = ExpandBlob(r.aMem);
|
||||
assert( rc==SQLITE_OK || rc==SQLITE_NOMEM );
|
||||
if( rc ) goto no_mem;
|
||||
pIdxKey = sqlite3VdbeAllocUnpackedRecord(pC->pKeyInfo);
|
||||
if( pIdxKey==0 ) goto no_mem;
|
||||
sqlite3VdbeRecordUnpack(pC->pKeyInfo, pIn3->n, pIn3->z, pIdxKey);
|
||||
sqlite3VdbeRecordUnpack(pC->pKeyInfo, r.aMem->n, r.aMem->z, pIdxKey);
|
||||
pIdxKey->default_rc = 0;
|
||||
rc = sqlite3BtreeIndexMoveto(pC->uc.pCursor, pIdxKey, &pC->seekResult);
|
||||
sqlite3DbFreeNN(db, pIdxKey);
|
||||
|
Reference in New Issue
Block a user