1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

In the OP_SeekScan opcode, changes to pOp must occur after the call

to VdbeBranchTaken() so that the VdbeBranchTaken() attributes the branch
to the correct opcode.

FossilOrigin-Name: 61fbe7aa7cc0e8fe3e6b1c5aec277183d8cd7c86b1e835c38e0b37a9b8063343
This commit is contained in:
drh
2020-09-30 00:10:22 +00:00
parent a54e1b1fc8
commit f287d00108
3 changed files with 9 additions and 9 deletions

View File

@@ -4481,8 +4481,8 @@ case OP_SeekScan: {
printf("... %d steps and then skip\n", pOp->p1 - n);
}
#endif
pOp++;
VdbeBranchTaken(1,3);
pOp++;
goto jump_to_p2;
}
if( res==0 ){
@@ -4491,8 +4491,8 @@ case OP_SeekScan: {
printf("... %d steps and then success\n", pOp->p1 - n);
}
#endif
pOp += 2;
VdbeBranchTaken(2,3);
pOp += 2;
break;
}
if( n<=0 ){