aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2023-09-09 17:53:55 +0000
committerdan <Dan Kennedy>2023-09-09 17:53:55 +0000
commitef2e43304eac85a6d7ed669f41c04c7cb344f18c (patch)
tree011283e49476decbc6bd71be589e6be42186e1d7 /src/expr.c
parent1b2d170a8fb2fe1591af737d766edf9b58f3fd11 (diff)
downloadsqlite-ef2e43304eac85a6d7ed669f41c04c7cb344f18c.tar.gz
sqlite-ef2e43304eac85a6d7ed669f41c04c7cb344f18c.zip
Remove out-of-date comment regarding use of Parse.pConstExpr.
FossilOrigin-Name: 71548f72ad578db3d6ee409956386ace23ab2258d37cdc29ef2fb126e48f1ee3
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index d96f36285..9f876e610 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -5048,7 +5048,7 @@ expr_code_doover:
** once. If no functions are involved, then factor the code out and put it at
** the end of the prepared statement in the initialization section.
**
-** If regDest>=0 then the result is always stored in that register and the
+** If regDest>0 then the result is always stored in that register and the
** result is not reusable. If regDest<0 then this routine is free to
** store the value wherever it wants. The register where the expression
** is stored is returned. When regDest<0, two identical expressions might
@@ -5063,6 +5063,7 @@ int sqlite3ExprCodeRunJustOnce(
){
ExprList *p;
assert( ConstFactorOk(pParse) );
+ assert( regDest!=0 );
p = pParse->pConstExpr;
if( regDest<0 && p ){
struct ExprList_item *pItem;