aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <>2022-03-06 11:43:06 +0000
committerdrh <>2022-03-06 11:43:06 +0000
commit97a985e0c5c3257bbed7423ab81a9123d18079ca (patch)
treebf03b55400714532304ff7661044545249ecf9c4 /src/func.c
parentdc9513601e0d82a4b2e93e94fb80ec69f02326e5 (diff)
downloadsqlite-97a985e0c5c3257bbed7423ab81a9123d18079ca.tar.gz
sqlite-97a985e0c5c3257bbed7423ab81a9123d18079ca.zip
The sqlite_offset() function should be non-deterministic.
dbsqlfuzz 3df8230bb940870db87ffca2c0fc759c1e7fa356. FossilOrigin-Name: e1a185e60afd32d3b25278dee42049920759ccd8fe709161007f5daa4a048693
Diffstat (limited to 'src/func.c')
-rw-r--r--src/func.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c
index c15f5c73e..7ccb5118e 100644
--- a/src/func.c
+++ b/src/func.c
@@ -2241,8 +2241,8 @@ void sqlite3RegisterBuiltinFunctions(void){
INLINE_FUNC(likelihood, 2, INLINEFUNC_unlikely, SQLITE_FUNC_UNLIKELY),
INLINE_FUNC(likely, 1, INLINEFUNC_unlikely, SQLITE_FUNC_UNLIKELY),
#ifdef SQLITE_ENABLE_OFFSET_SQL_FUNC
- FUNCTION2(sqlite_offset, 1, 0, 0, noopFunc, SQLITE_FUNC_OFFSET|
- SQLITE_FUNC_TYPEOF),
+ {1, SQLITE_FUNC_BUILTIN|SQLITE_UTF8|SQLITE_FUNC_OFFSET|SQLITE_FUNC_TYPEOF,
+ 0, 0, noopFunc, 0, 0, 0, "sqlite_offset", {0} },
#endif
FUNCTION(ltrim, 1, 1, 0, trimFunc ),
FUNCTION(ltrim, 2, 1, 0, trimFunc ),