mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Change the order of an if..else... in new code to make it slightly faster.
FossilOrigin-Name: f80dc64483a54a488e507da140836261ae1b864577cc95d8e869919d5a25e73c
This commit is contained in:
10
src/expr.c
10
src/expr.c
@@ -4393,11 +4393,6 @@ expr_code_doover:
|
||||
}
|
||||
return iReg;
|
||||
}
|
||||
if( pParse->pIdxPartExpr
|
||||
&& 0!=(r1 = exprPartidxExprLookup(pParse, pExpr, target))
|
||||
){
|
||||
return r1;
|
||||
}
|
||||
if( iTab<0 ){
|
||||
if( pParse->iSelfTab<0 ){
|
||||
/* Other columns in the same row for CHECK constraints or
|
||||
@@ -4449,6 +4444,11 @@ expr_code_doover:
|
||||
iTab = pParse->iSelfTab - 1;
|
||||
}
|
||||
}
|
||||
else if( pParse->pIdxPartExpr
|
||||
&& 0!=(r1 = exprPartidxExprLookup(pParse, pExpr, target))
|
||||
){
|
||||
return r1;
|
||||
}
|
||||
assert( ExprUseYTab(pExpr) );
|
||||
assert( pExpr->y.pTab!=0 );
|
||||
iReg = sqlite3ExprCodeGetColumn(pParse, pExpr->y.pTab,
|
||||
|
Reference in New Issue
Block a user