Skip to content

Commit 42b7a37

Browse files
committed
parser: Add support for strict tables to the SQL parser
See issue #2926.
1 parent 852853a commit 42b7a37

File tree

11 files changed

+2789
-2516
lines changed

11 files changed

+2789
-2516
lines changed

src/sql/parser/sqlite3_lexer.cpp

Lines changed: 689 additions & 682 deletions
Large diffs are not rendered by default.

src/sql/parser/sqlite3_lexer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#define yyHEADER_H 1
33
#define yyIN_HEADER 1
44

5-
#line 5 "sqlite3_lexer.h"
5+
#line 6 "sqlite3_lexer.h"
66

7-
#line 7 "sqlite3_lexer.h"
7+
#line 8 "sqlite3_lexer.h"
88

99
#define YY_INT_ALIGNED short int
1010

@@ -602,9 +602,9 @@ extern int yylex (yyscan_t yyscanner);
602602
#undef yyTABLES_NAME
603603
#endif
604604

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

607607

608-
#line 608 "sqlite3_lexer.h"
608+
#line 609 "sqlite3_lexer.h"
609609
#undef yyIN_HEADER
610610
#endif /* yyHEADER_H */

src/sql/parser/sqlite3_lexer.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ WS [ \t\f]
182182
"SELECT" return TOKEN(SELECT);
183183
"SET" return TOKEN(SET);
184184
"STORED" return TOKEN(STORED);
185+
"STRICT" return TOKEN(STRICT);
185186
"TABLE" return TOKEN(TABLE);
186187
"TEMP" return TOKEN(TEMP);
187188
"TEMPORARY" return TOKEN(TEMPORARY);

src/sql/parser/sqlite3_location.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// A Bison parser, made by GNU Bison 3.7.5.
1+
// A Bison parser, made by GNU Bison 3.8.2.
22

33
// Locations for Bison parsers in C++
44

@@ -15,7 +15,7 @@
1515
// GNU General Public License for more details.
1616

1717
// You should have received a copy of the GNU General Public License
18-
// along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
1919

2020
// As a special exception, you may create a larger work that contains
2121
// part or all of the Bison parser skeleton and distribute that work

0 commit comments

Comments
 (0)