aboutsummaryrefslogtreecommitdiff
path: root/src/vtab.c
diff options
context:
space:
mode:
authordrh <>2025-01-31 01:34:19 +0000
committerdrh <>2025-01-31 01:34:19 +0000
commite16b3452435dd03dbae8f355feeb33385780af3d (patch)
tree361515759a6d50c375aefc5d6a608eac844f23ed /src/vtab.c
parent0911f86abf39bfaf0f3b144f07860238baf6a483 (diff)
downloadsqlite-e16b3452435dd03dbae8f355feeb33385780af3d.tar.gz
sqlite-e16b3452435dd03dbae8f355feeb33385780af3d.zip
Add the SQLITE_DBCONFIG_ENABLE_COMMENTS setting (default on) to enable or
disable the ability to include comments in SQL input text. FossilOrigin-Name: 393749a2e22d5c8eba36e2106a35909420aa6316652d1ab4f18ef699247b6fba
Diffstat (limited to 'src/vtab.c')
-rw-r--r--src/vtab.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vtab.c b/src/vtab.c
index 76ad3613e..09f0c2d7f 100644
--- a/src/vtab.c
+++ b/src/vtab.c
@@ -830,7 +830,9 @@ int sqlite3_declare_vtab(sqlite3 *db, const char *zCreateTable){
z = (const unsigned char*)zCreateTable;
for(i=0; aKeyword[i]; i++){
int tokenType = 0;
- do{ z += sqlite3GetToken(z, &tokenType); }while( tokenType==TK_SPACE );
+ do{
+ z += sqlite3GetToken(z, &tokenType);
+ }while( tokenType==TK_SPACE || tokenType==TK_COMMENT );
if( tokenType!=aKeyword[i] ){
sqlite3ErrorWithMsg(db, SQLITE_ERROR, "syntax error");
return SQLITE_ERROR;