/ Check-in [10e04508]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Omit calls to sqlite3Pragma() if SQLITE_OMIT_PARSER defined. Not technically needed, as the entire generated parse.c file should not be included. (CVS 5506)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 10e0450896a8b92b160f2e670e8d5a909c1c67ba
User & Date: shane 2008-07-31 01:40:42
Context
2008-07-31
01:43
Fixed comment to use right function names for sqlite3VdbeSerialPut() and sqlite3VdbeSerialGet(). (CVS 5507) check-in: 820c37ec user: shane tags: trunk
01:40
Omit calls to sqlite3Pragma() if SQLITE_OMIT_PARSER defined. Not technically needed, as the entire generated parse.c file should not be included. (CVS 5506) check-in: 10e04508 user: shane tags: trunk
01:34
Improved retry logic for winDelete() when in "pending delete" state. (CVS 5505) check-in: 03a79734 user: shane tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/parse.y.

    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains SQLite's grammar for SQL.  Process this file
    13     13   ** using the lemon parser generator to generate C code that runs
    14     14   ** the parser.  Lemon will also generate a header file containing
    15     15   ** numeric codes for all of the tokens.
    16     16   **
    17         -** @(#) $Id: parse.y,v 1.247 2008/07/28 19:34:53 drh Exp $
           17  +** @(#) $Id: parse.y,v 1.248 2008/07/31 01:40:42 shane Exp $
    18     18   */
    19     19   
    20     20   // All token codes are small integers with #defines that begin with "TK_"
    21     21   %token_prefix TK_
    22     22   
    23     23   // The type of the data attached to each token is Token.  This is also the
    24     24   // default type for non-terminals.
................................................................................
   927    927   cmd ::= VACUUM.                {sqlite3Vacuum(pParse);}
   928    928   cmd ::= VACUUM nm.             {sqlite3Vacuum(pParse);}
   929    929   %endif  SQLITE_OMIT_ATTACH
   930    930   %endif  SQLITE_OMIT_VACUUM
   931    931   
   932    932   ///////////////////////////// The PRAGMA command /////////////////////////////
   933    933   //
          934  +%ifndef SQLITE_OMIT_PARSER
   934    935   %ifndef SQLITE_OMIT_PRAGMA
   935    936   cmd ::= PRAGMA nm(X) dbnm(Z) EQ nmnum(Y).   {sqlite3Pragma(pParse,&X,&Z,&Y,0);}
   936    937   cmd ::= PRAGMA nm(X) dbnm(Z) EQ ON(Y).      {sqlite3Pragma(pParse,&X,&Z,&Y,0);}
   937    938   cmd ::= PRAGMA nm(X) dbnm(Z) EQ DELETE(Y).  {sqlite3Pragma(pParse,&X,&Z,&Y,0);}
   938    939   cmd ::= PRAGMA nm(X) dbnm(Z) EQ minus_num(Y). {
   939    940     sqlite3Pragma(pParse,&X,&Z,&Y,1);
   940    941   }
   941    942   cmd ::= PRAGMA nm(X) dbnm(Z) LP nmnum(Y) RP. {sqlite3Pragma(pParse,&X,&Z,&Y,0);}
   942    943   cmd ::= PRAGMA nm(X) dbnm(Z).             {sqlite3Pragma(pParse,&X,&Z,0,0);}
   943    944   nmnum(A) ::= plus_num(X).             {A = X;}
   944    945   nmnum(A) ::= nm(X).                   {A = X;}
   945    946   %endif SQLITE_OMIT_PRAGMA
          947  +%endif SQLITE_OMIT_PARSER
   946    948   plus_num(A) ::= plus_opt number(X).   {A = X;}
   947    949   minus_num(A) ::= MINUS number(X).     {A = X;}
   948    950   number(A) ::= INTEGER|FLOAT(X).       {A = X;}
   949    951   plus_opt ::= PLUS.
   950    952   plus_opt ::= .
   951    953   
   952    954   //////////////////////////// The CREATE TRIGGER command /////////////////////