aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-04-25 19:02:48 +0000
committerdrh <drh@noemail.net>2018-04-25 19:02:48 +0000
commitfc0ec3e5e839e92f8205804b1b1e836a51a8e5b5 (patch)
tree5f6e2771e8db993566953918f8a0817c598900b7 /src/main.c
parent7eabc44dee611a7ffa90ab388892ac92d118061a (diff)
downloadsqlite-fc0ec3e5e839e92f8205804b1b1e836a51a8e5b5.tar.gz
sqlite-fc0ec3e5e839e92f8205804b1b1e836a51a8e5b5.zip
Add new interfaces for accessing the list of SQL keywords:
sqlite3_keyword_count(), sqlite3_keyword_name(), sqlite3_keyword_check(). FossilOrigin-Name: 7dd34e3776fed90a49344d54a1b68bb59f7957b5a8a1a367087b7cafb63111c1
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main.c b/src/main.c
index 99e3e6f97..442067a14 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3861,24 +3861,6 @@ int sqlite3_test_control(int op, ...){
break;
}
-#ifdef SQLITE_N_KEYWORD
- /* sqlite3_test_control(SQLITE_TESTCTRL_ISKEYWORD, const char *zWord)
- **
- ** If zWord is a keyword recognized by the parser, then return the
- ** number of keywords. Or if zWord is not a keyword, return 0.
- **
- ** This test feature is only available in the amalgamation since
- ** the SQLITE_N_KEYWORD macro is not defined in this file if SQLite
- ** is built using separate source files.
- */
- case SQLITE_TESTCTRL_ISKEYWORD: {
- const char *zWord = va_arg(ap, const char*);
- int n = sqlite3Strlen30(zWord);
- rc = (sqlite3KeywordCode((u8*)zWord, n)!=TK_ID) ? SQLITE_N_KEYWORD : 0;
- break;
- }
-#endif
-
/* sqlite3_test_control(SQLITE_TESTCTRL_LOCALTIME_FAULT, int onoff);
**
** If parameter onoff is non-zero, configure the wrappers so that all