Have "DEFAULT CURRENT_TIME" & co. work even if SQLITE_OMIT_DATETIME_FUNCS is defined. (CVS 2083)

FossilOrigin-Name: f81b9c1c022772378aad32ec45d0027beeb36574
This commit is contained in:
danielk1977
2004-11-09 16:13:33 +00:00
parent 7977a17f06
commit 752e679a1e
5 changed files with 69 additions and 14 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
** the parser. Lemon will also generate a header file containing
** numeric codes for all of the tokens.
**
** @(#) $Id: parse.y,v 1.151 2004/11/09 12:44:38 danielk1977 Exp $
** @(#) $Id: parse.y,v 1.152 2004/11/09 16:13:33 danielk1977 Exp $
*/
%token_prefix TK_
%token_type {Token}
@@ -577,7 +577,7 @@ inscollist(A) ::= nm(Y). {A = sqlite3IdListAppend(0,&Y);}
%destructor term {sqlite3ExprDelete($$);}
expr(A) ::= term(X). {A = X;}
term(A) ::= LP(B) expr(X) RP(E). {A = X; sqlite3ExprSpan(A,&B,&E); }
expr(A) ::= LP(B) expr(X) RP(E). {A = X; sqlite3ExprSpan(A,&B,&E); }
term(A) ::= NULL(X). {A = sqlite3Expr(@X, 0, 0, &X);}
expr(A) ::= ID(X). {A = sqlite3Expr(TK_ID, 0, 0, &X);}
expr(A) ::= JOIN_KW(X). {A = sqlite3Expr(TK_ID, 0, 0, &X);}