aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2022-10-17 14:46:39 +0000
committerdrh <>2022-10-17 14:46:39 +0000
commite70d458340146bf20cc48224b8ddd9a18120d3c0 (patch)
tree9ef1b5e722f8f06693aaf868320b80b7217a092a /src/expr.c
parent08535840c6a279a69a421a3be3b23fac355d80ac (diff)
downloadsqlite-e70d458340146bf20cc48224b8ddd9a18120d3c0.tar.gz
sqlite-e70d458340146bf20cc48224b8ddd9a18120d3c0.zip
Improved comments and function names. No logic changes.
FossilOrigin-Name: 8f460b3b15bf4b88a224907d2f83e4ed6bf84d6b3f480008a1b187ea49c6ce1d
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/expr.c b/src/expr.c
index 4bff00411..30f9031e2 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -4044,17 +4044,17 @@ static int exprCodeInlineFunction(
}
/*
-** Check to see if pExpr is one of the indexed expression on pParse->pIdxExpr.
+** Check to see if pExpr is one of the indexed expressions on pParse->pIdxExpr.
** If it is, then resolve the expression by reading from the index and
-** return the register into which the value has been read. If there is
-** no match, return negative.
+** return the register into which the value has been read. If pExpr is
+** not an indexed expression, then return negative.
*/
-static SQLITE_NOINLINE int sqlite3ExprIndexLookup(
+static SQLITE_NOINLINE int sqlite3IndexedExprLookup(
Parse *pParse, /* The parsing context */
Expr *pExpr, /* The expression to potentially bypass */
int target /* Where to store the result of the expression */
){
- IndexExpr *p;
+ IndexedExpr *p;
Vdbe *v;
for(p=pParse->pIdxExpr; p; p=p->pIENext){
if( p->iDataCur<0 ) continue;
@@ -4111,7 +4111,7 @@ int sqlite3ExprCodeTarget(Parse *pParse, Expr *pExpr, int target){
if( pParse->pIdxExpr!=0
&& pExpr!=0
&& !ExprHasProperty(pExpr, EP_Leaf)
- && (r1 = sqlite3ExprIndexLookup(pParse, pExpr, target))>=0
+ && (r1 = sqlite3IndexedExprLookup(pParse, pExpr, target))>=0
){
return r1;
}