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

Fix VDBE branch accounting on comparison operators.

FossilOrigin-Name: b287520c9226f7a9fab98142f5c207bfe959cd7e
This commit is contained in:
drh
2014-02-18 11:31:59 +00:00
parent 7d1761059b
commit f4345e40a0
3 changed files with 9 additions and 9 deletions

View File

@@ -1909,7 +1909,7 @@ case OP_Ge: { /* same as TK_GE, jump, in1, in3 */
MemSetTypeFlag(pOut, MEM_Null);
REGISTER_TRACE(pOp->p2, pOut);
}else{
VdbeBranchTaken((pOp->p5 & SQLITE_JUMPIFNULL)?2:3,4);
VdbeBranchTaken(2,3);
if( pOp->p5 & SQLITE_JUMPIFNULL ){
pc = pOp->p2-1;
}
@@ -1946,7 +1946,7 @@ case OP_Ge: { /* same as TK_GE, jump, in1, in3 */
pOut->u.i = res;
REGISTER_TRACE(pOp->p2, pOut);
}else{
VdbeBranchTaken(res!=0, 4);
VdbeBranchTaken(res!=0, (pOp->p5 & SQLITE_NULLEQ)?2:3);
if( res ){
pc = pOp->p2-1;
}