aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <>2024-10-07 21:04:57 +0000
committerdrh <>2024-10-07 21:04:57 +0000
commitddc764b274b2eadebef91dc3adef44158a8c15ef (patch)
tree91cbee92203a942414f00f3dc71e700a3763822f /src/func.c
parentf7f78a624d69ee606cc5aad1c3490bccdbe5dfa5 (diff)
downloadsqlite-ddc764b274b2eadebef91dc3adef44158a8c15ef.tar.gz
sqlite-ddc764b274b2eadebef91dc3adef44158a8c15ef.zip
Add a NEVER() to an unreachable branch in the new indexed-subtype logic.
Mark the pi() function as deterministic. FossilOrigin-Name: 50be8f5091b2202b67a80f826feee2c378f001745ad5acb7c4374423bbf6ff22
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c
index 845d88b08..2de16b8aa 100644
--- a/src/func.c
+++ b/src/func.c
@@ -2813,7 +2813,7 @@ void sqlite3RegisterBuiltinFunctions(void){
MFUNCTION(sqrt, 1, sqrt, math1Func ),
MFUNCTION(radians, 1, degToRad, math1Func ),
MFUNCTION(degrees, 1, radToDeg, math1Func ),
- FUNCTION(pi, 0, 0, 0, piFunc ),
+ MFUNCTION(pi, 0, 0, piFunc ),
#endif /* SQLITE_ENABLE_MATH_FUNCTIONS */
FUNCTION(sign, 1, 0, 0, signFunc ),
INLINE_FUNC(coalesce, -1, INLINEFUNC_coalesce, 0 ),