diff options
author | drh <> | 2021-09-17 13:07:15 +0000 |
---|---|---|
committer | drh <> | 2021-09-17 13:07:15 +0000 |
commit | 3780f9a4aa4a2c4a08c15d9d17cb2de8ad6d2bb5 (patch) | |
tree | 5f8a6308af6b070a4664f07fbda28608d9632368 /src/expr.c | |
parent | 89b1715415fc8663d817e4415a1c87d53ff5041e (diff) | |
download | sqlite-3780f9a4aa4a2c4a08c15d9d17cb2de8ad6d2bb5.tar.gz sqlite-3780f9a4aa4a2c4a08c15d9d17cb2de8ad6d2bb5.zip |
Make the affinity() function available even if compiled without
SQLITE_DEBUG. Surround the implementation of all test-only SQL functions
with #ifndef SQLITE_UNTESTABLE.
FossilOrigin-Name: b7e00ef8059f6fb5658c6ad6f337cfdf065a5f1b1130452122282f3a69e98a93
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index 34f14e368..d85d21eb1 100644 --- a/src/expr.c +++ b/src/expr.c @@ -3866,6 +3866,7 @@ static int exprCodeInlineFunction( ** Test-only SQL functions that are only usable if enabled ** via SQLITE_TESTCTRL_INTERNAL_FUNCTIONS */ +#if !defined(SQLITE_UNTESTABLE) case INLINEFUNC_expr_compare: { /* Compare two expressions using sqlite3ExprCompare() */ assert( nFarg==2 ); @@ -3899,7 +3900,6 @@ static int exprCodeInlineFunction( break; } -#ifdef SQLITE_DEBUG case INLINEFUNC_affinity: { /* The AFFINITY() function evaluates to a string that describes ** the type affinity of the argument. This is used for testing of @@ -3913,7 +3913,7 @@ static int exprCodeInlineFunction( (aff<=SQLITE_AFF_NONE) ? "none" : azAff[aff-SQLITE_AFF_BLOB]); break; } -#endif +#endif /* !defined(SQLITE_UNTESTABLE) */ } return target; } |