aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <>2023-06-22 21:19:37 +0000
committerdrh <>2023-06-22 21:19:37 +0000
commit077efc273064c7dba3fa950002de8be29351f129 (patch)
tree78c8bd899b27f3e5da31755dfd9881fddfbd2924 /src/func.c
parent7f9dcd664da8b6694be228f3084c88f2115fc2a0 (diff)
downloadsqlite-077efc273064c7dba3fa950002de8be29351f129.tar.gz
sqlite-077efc273064c7dba3fa950002de8be29351f129.zip
Optimize the argument to the octet_length() function so that it does not
attempt to read content from disk. FossilOrigin-Name: 8b8ea4e3f52d96cc217bd1fb27ca4a83489ef1f250756ed2f790d1b0ee529a3a
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 c83eafca9..f0695ac53 100644
--- a/src/func.c
+++ b/src/func.c
@@ -2412,7 +2412,7 @@ void sqlite3RegisterBuiltinFunctions(void){
FUNCTION2(typeof, 1, 0, 0, typeofFunc, SQLITE_FUNC_TYPEOF),
FUNCTION2(subtype, 1, 0, 0, subtypeFunc, SQLITE_FUNC_TYPEOF),
FUNCTION2(length, 1, 0, 0, lengthFunc, SQLITE_FUNC_LENGTH),
- FUNCTION2(octet_length, 1, 0, 0, bytelengthFunc,SQLITE_FUNC_LENGTH),
+ FUNCTION2(octet_length, 1, 0, 0, bytelengthFunc,SQLITE_FUNC_BYTELEN),
FUNCTION(instr, 2, 0, 0, instrFunc ),
FUNCTION(printf, -1, 0, 0, printfFunc ),
FUNCTION(format, -1, 0, 0, printfFunc ),