aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-05-13 17:26:38 +0000
committerdrh <drh@noemail.net>2020-05-13 17:26:38 +0000
commitffe421c76ad11c29287cbabe3548a7d95569ac37 (patch)
tree10cede169963aa88488ec765cd183cc27bb3b306 /src
parent8b4f231c471389428c91e7a6c13583a3f13d1d53 (diff)
downloadsqlite-ffe421c76ad11c29287cbabe3548a7d95569ac37.tar.gz
sqlite-ffe421c76ad11c29287cbabe3548a7d95569ac37.zip
Remove unused constant SQLITE_FUNC_COALESCE.
FossilOrigin-Name: a116b20f863e9732cd08fbfbb1aa48204a17d611c9c1edde85dcf59310bde782
Diffstat (limited to 'src')
-rw-r--r--src/func.c4
-rw-r--r--src/sqliteInt.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/func.c b/src/func.c
index 167b6afd7..6c1e1f756 100644
--- a/src/func.c
+++ b/src/func.c
@@ -1980,7 +1980,7 @@ void sqlite3RegisterBuiltinFunctions(void){
FUNCTION(upper, 1, 0, 0, upperFunc ),
FUNCTION(lower, 1, 0, 0, lowerFunc ),
FUNCTION(hex, 1, 0, 0, hexFunc ),
- INLINE_FUNC(ifnull, 2, INLINEFUNC_coalesce, SQLITE_FUNC_COALESCE),
+ INLINE_FUNC(ifnull, 2, INLINEFUNC_coalesce, 0 ),
VFUNCTION(random, 0, 0, 0, randomFunc ),
VFUNCTION(randomblob, 1, 0, 0, randomBlob ),
FUNCTION(nullif, 2, 0, 1, nullifFunc ),
@@ -2020,7 +2020,7 @@ void sqlite3RegisterBuiltinFunctions(void){
#endif
FUNCTION(coalesce, 1, 0, 0, 0 ),
FUNCTION(coalesce, 0, 0, 0, 0 ),
- INLINE_FUNC(coalesce, -1, INLINEFUNC_coalesce, SQLITE_FUNC_COALESCE),
+ INLINE_FUNC(coalesce, -1, INLINEFUNC_coalesce, 0 ),
};
#ifndef SQLITE_OMIT_ALTERTABLE
sqlite3AlterFunctions();
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 5ae69e873..d80337fbf 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1764,7 +1764,7 @@ struct FuncDestructor {
#define SQLITE_FUNC_LENGTH 0x0040 /* Built-in length() function */
#define SQLITE_FUNC_TYPEOF 0x0080 /* Built-in typeof() function */
#define SQLITE_FUNC_COUNT 0x0100 /* Built-in count(*) aggregate */
-#define SQLITE_FUNC_COALESCE 0x0200 /* Built-in coalesce() or ifnull() */
+/* 0x0200 -- available for reuse */
#define SQLITE_FUNC_UNLIKELY 0x0400 /* Built-in unlikely() function */
#define SQLITE_FUNC_CONSTANT 0x0800 /* Constant inputs give a constant output */
#define SQLITE_FUNC_MINMAX 0x1000 /* True for min() and max() aggregates */