aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2022-06-01 13:32:05 +0000
committerdrh <>2022-06-01 13:32:05 +0000
commit6d013d890e0f2b6cc86e815c3adfdefa422b88ca (patch)
treeb2421a87d788938140aa86edd7ba6fd61ba60d72 /src/expr.c
parentea7a4e4fb3d8e64692c446283df5909685d2a409 (diff)
downloadsqlite-6d013d890e0f2b6cc86e815c3adfdefa422b88ca.tar.gz
sqlite-6d013d890e0f2b6cc86e815c3adfdefa422b88ca.zip
Only include the code for sqlite_offset() if compiled with
-DSQLITE_ENABLE_OFFSET_SQL_FUNC. FossilOrigin-Name: 382cd7e10b2df4216da8f25b55546bc74a963d9834af240f75ec8b8321ba106e
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c
index dcb5ee171..09b56f489 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -3955,6 +3955,7 @@ static int exprCodeInlineFunction(
caseExpr.x.pList = pFarg;
return sqlite3ExprCodeTarget(pParse, &caseExpr, target);
}
+#ifdef SQLITE_ENABLE_OFFSET_SQL_FUNC
case INLINEFUNC_sqlite_offset: {
Expr *pArg = pFarg->a[0].pExpr;
if( pArg->op==TK_COLUMN && pArg->iTable>=0 ){
@@ -3964,6 +3965,7 @@ static int exprCodeInlineFunction(
}
break;
}
+#endif
default: {
/* The UNLIKELY() function is a no-op. The result is the value
** of the first argument.