aboutsummaryrefslogtreecommitdiff
path: root/src/resolve.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-09-01 13:17:17 +0000
committerdrh <drh@noemail.net>2015-09-01 13:17:17 +0000
commita7f910b549e305306165fe99b431891e66c84223 (patch)
treebf06d8b5950f9272fce4b64d2546fc7233a2f29e /src/resolve.c
parent7d3d9daea2f94d1265ec97f1d1dfbc6cc36edefd (diff)
downloadsqlite-a7f910b549e305306165fe99b431891e66c84223.tar.gz
sqlite-a7f910b549e305306165fe99b431891e66c84223.zip
Rename SQLITE_FUNC_VARYING to SQLITE_FUNC_SLOCHNG - a more descriptive name
for what that bit means. FossilOrigin-Name: ff5137a6dd8cb2a9b629b3a244f52665e9c9ebce
Diffstat (limited to 'src/resolve.c')
-rw-r--r--src/resolve.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resolve.c b/src/resolve.c
index 9522f63ce..22df22394 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -729,15 +729,16 @@ static int resolveExprStep(Walker *pWalker, Expr *pExpr){
return WRC_Prune;
}
#endif
- if( pDef->funcFlags & (SQLITE_FUNC_CONSTANT|SQLITE_FUNC_VARYING) ){
+ if( pDef->funcFlags & (SQLITE_FUNC_CONSTANT|SQLITE_FUNC_SLOCHNG) ){
/* For the purposes of the EP_ConstFunc flag, date and time
** functions and other functions that change slowly are considered
** constant because they are constant for the duration of one query */
ExprSetProperty(pExpr,EP_ConstFunc);
}
if( (pDef->funcFlags & SQLITE_FUNC_CONSTANT)==0 ){
- /* DATETIME functions are considered non-deterministic because of
- ** the 'now' capability */
+ /* Date/time functions that use 'now', and other functions like
+ ** sqlite_version() that might change over time cannot be used
+ ** in an index. */
notValid(pParse, pNC, "non-deterministic functions", NC_IdxExpr);
}
}