grammar: fix missing literalvalues in default constraint

This commit is contained in:
Peinthor Rene
2014-07-10 07:30:05 +02:00
parent 6705e8c9f2
commit f3a2a74953
3 changed files with 319 additions and 297 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -55,12 +55,12 @@ public:
public: void name();
public: void conflictclause();
public: void expr();
public: void literalvalue();
public: void foreignkeyclause();
public: void indexedcolumn();
public: void functionname();
public: void subexpr();
public: void binaryoperator();
public: void literalvalue();
public: void castexpr();
public: void caseexpr();
public: void raisefunction();
@@ -141,6 +141,12 @@ private:
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_26;
static const unsigned long _tokenSet_27_data_[];
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_27;
static const unsigned long _tokenSet_28_data_[];
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_28;
static const unsigned long _tokenSet_29_data_[];
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_29;
static const unsigned long _tokenSet_30_data_[];
static const ANTLR_USE_NAMESPACE(antlr)BitSet _tokenSet_30;
};
#endif /*INC_Sqlite3Parser_hpp_*/

View File

@@ -341,7 +341,7 @@ columnconstraint
| (NOT)? NULL_T (conflictclause)?
| UNIQUE (conflictclause)?
| CHECK LPAREN expr RPAREN
| DEFAULT (signednumber | QUOTEDLITERAL | STRINGLITERAL | LPAREN expr RPAREN)
| DEFAULT (signednumber | QUOTEDLITERAL | STRINGLITERAL | LPAREN expr RPAREN | literalvalue)
| COLLATE collationname
| foreignkeyclause)
{#columnconstraint = #([COLUMNCONSTRAINT, "COLUMNCONSTRAINT"], #columnconstraint);}