/ Check-in [051f4635]
Login

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

Overview
Comment:Fix the build when using SQLITE_OMIT_PRAGMA.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 051f4635bf1e9618b108c4177b8ecc5762ed08e7
User & Date: drh 2011-06-03 13:02:57
Context
2011-06-03
13:06
Add shell scripts used for testing compiler warnings (tool/warnings.sh), for verifying that the library exports the correct symbols (tool/symbols.sh), and to demonstrate building a full-featured command-line shell (tool/build-shell.sh). check-in: 3aca9a92 user: drh tags: trunk
13:02
Fix the build when using SQLITE_OMIT_PRAGMA. check-in: 051f4635 user: drh tags: trunk
12:15
Fix an #ifdef of SQLITE_OMIT_VIRTUALTABLE that had an extra "_" character. check-in: 93e0be2b user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pragma.c.

     9      9   **    May you share freely, never taking more than you give.
    10     10   **
    11     11   *************************************************************************
    12     12   ** This file contains code used to implement the PRAGMA command.
    13     13   */
    14     14   #include "sqliteInt.h"
    15     15   
    16         -/* Ignore this whole file if pragmas are disabled
    17         -*/
    18         -#if !defined(SQLITE_OMIT_PRAGMA)
    19         -
    20     16   /*
    21     17   ** Interpret the given string as a safety level.  Return 0 for OFF,
    22     18   ** 1 for ON or NORMAL and 2 for FULL.  Return 1 for an empty or 
    23     19   ** unrecognized string argument.
    24     20   **
    25     21   ** Note that the values returned are one less that the values that
    26     22   ** should be passed into sqlite3BtreeSetSafetyLevel().  The is done
................................................................................
    48     44   
    49     45   /*
    50     46   ** Interpret the given string as a boolean value.
    51     47   */
    52     48   u8 sqlite3GetBoolean(const char *z){
    53     49     return getSafetyLevel(z)&1;
    54     50   }
           51  +
           52  +/* The sqlite3GetBoolean() function is used by other modules but the
           53  +** remainder of this file is specific to PRAGMA processing.  So omit
           54  +** the rest of the file if PRAGMAs are omitted from the build.
           55  +*/
           56  +#if !defined(SQLITE_OMIT_PRAGMA)
    55     57   
    56     58   /*
    57     59   ** Interpret the given string as a locking mode value.
    58     60   */
    59     61   static int getLockingMode(const char *z){
    60     62     if( z ){
    61     63       if( 0==sqlite3StrICmp(z, "exclusive") ) return PAGER_LOCKINGMODE_EXCLUSIVE;