Skip to content

Commit

Permalink
Extend SQL grammar to recognise 'without rowid' tables correctly
Browse files Browse the repository at this point in the history
Since version 3.8.2 SQLite supports tables without the internal rowid
column added to the table. For these tables the primary key serves as a
replacement for the rowid column.

These changes update the grammar parser to correctly handle 'without
rowid' tables and also generate 'without rowid' SQL statements.
  • Loading branch information
MKleusberg committed May 9, 2014
1 parent 69df819 commit 3761acf
Show file tree
Hide file tree
Showing 8 changed files with 819 additions and 749 deletions.
28 changes: 15 additions & 13 deletions src/grammar/Sqlite3Lexer.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/grammar/Sqlite3Lexer.hpp
Expand Up @@ -2,7 +2,7 @@
#define INC_Sqlite3Lexer_hpp_

#include <antlr/config.hpp>
/* $ANTLR 2.7.7 (20140222): "sqlite3.g" -> "Sqlite3Lexer.hpp"$ */
/* $ANTLR 2.7.7 (20130425): "sqlite3.g" -> "Sqlite3Lexer.hpp"$ */
#include <antlr/CommonToken.hpp>
#include <antlr/InputBuffer.hpp>
#include <antlr/BitSet.hpp>
Expand Down

0 comments on commit 3761acf

Please sign in to comment.