Skip to content

Commit 5c57622

Browse files
committed
parser: Add support for IS (NOT) DISTINCT FROM expressions
SQLite 3.39.0 introduced expressions of these forms: expr IS DISTINCT FROM expr expr IS NOT DISTINCT FROM expr Since these can be used in indexes and check expression, we need need to add support for these expressions to the SQL parser.
1 parent b01a201 commit 5c57622

6 files changed

Lines changed: 2731 additions & 2613 deletions

File tree

src/sql/parser/sqlite3_lexer.cpp

Lines changed: 804 additions & 799 deletions
Large diffs are not rendered by default.

src/sql/parser/sqlite3_lexer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ extern int yylex (yyscan_t yyscanner);
602602
#undef yyTABLES_NAME
603603
#endif
604604

605-
#line 240 "sqlite3_lexer.ll"
605+
#line 241 "sqlite3_lexer.ll"
606606

607607

608608
#line 609 "sqlite3_lexer.h"

src/sql/parser/sqlite3_lexer.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ WS [ \t\f]
145145
"FILTER" return TOKEN(FILTER);
146146
"FOLLOWING" return TOKEN(FOLLOWING);
147147
"FOREIGN" return TOKEN(FOREIGN);
148+
"FROM" return TOKEN(FROM);
148149
"GENERATED" return TOKEN(GENERATED);
149150
"GLOB" return TOKEN(GLOB);
150151
"IF" return TOKEN(IF);

0 commit comments

Comments
 (0)