Skip to content

Commit 1ea67c3

Browse files
committed
grammar: Fix string literals in CHECK expressions (and maybe other places)
Fix parsing of table definitions like this one where there is a complex check constraint using string literals: CREATE TABLE "a" ( `b` TEXT CHECK(`b`='A' or `b`='B') ); The grammar parser would fail to parse this statement correctly prior to this fix. See issue sqlitebrowser#179.
1 parent 0f4ac7e commit 1ea67c3

File tree

6 files changed

+307
-298
lines changed

6 files changed

+307
-298
lines changed

src/grammar/Sqlite3Lexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $ANTLR 2.7.7 (20130425): "sqlite3.g" -> "Sqlite3Lexer.cpp"$ */
1+
/* $ANTLR 2.7.7 (20141010): "sqlite3.g" -> "Sqlite3Lexer.cpp"$ */
22
#include "Sqlite3Lexer.hpp"
33
#include <antlr/CharBuffer.hpp>
44
#include <antlr/TokenStreamException.hpp>

src/grammar/Sqlite3Lexer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define INC_Sqlite3Lexer_hpp_
33

44
#include <antlr/config.hpp>
5-
/* $ANTLR 2.7.7 (20130425): "sqlite3.g" -> "Sqlite3Lexer.hpp"$ */
5+
/* $ANTLR 2.7.7 (20141010): "sqlite3.g" -> "Sqlite3Lexer.hpp"$ */
66
#include <antlr/CommonToken.hpp>
77
#include <antlr/InputBuffer.hpp>
88
#include <antlr/BitSet.hpp>

0 commit comments

Comments
 (0)