diff options
author | drh <> | 2022-06-01 11:05:59 +0000 |
---|---|---|
committer | drh <> | 2022-06-01 11:05:59 +0000 |
commit | 645682a7c73c3e5df5551bec5666195f10cbe0b5 (patch) | |
tree | fdedc0ad6897d15d7d6612280383bdcc9f5ae363 /src/func.c | |
parent | 6ffa895884881b228ece0ed8a06679175746d4dd (diff) | |
download | sqlite-645682a7c73c3e5df5551bec5666195f10cbe0b5.tar.gz sqlite-645682a7c73c3e5df5551bec5666195f10cbe0b5.zip |
Move the sqlite_offset() function implementation to be an in-line function,
thereby avoiding special case code and freeing up a bit in the
FuncDef.flags field.
FossilOrigin-Name: 1c9812c458bd229c862efe5df1b64fae333da9871c8756b5ae4605a81bcda4b5
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c index 6c831c74b..ec50a17a3 100644 --- a/src/func.c +++ b/src/func.c @@ -2241,8 +2241,7 @@ 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 - {1, SQLITE_FUNC_BUILTIN|SQLITE_UTF8|SQLITE_FUNC_OFFSET|SQLITE_FUNC_TYPEOF, - 0, 0, noopFunc, 0, 0, 0, "sqlite_offset", {0} }, + INLINE_FUNC(sqlite_offset, 1, INLINEFUNC_sqlite_offset, 0 ), #endif FUNCTION(ltrim, 1, 1, 0, trimFunc ), FUNCTION(ltrim, 2, 1, 0, trimFunc ), |