/ Check-in [fa55c986]
Login

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

Overview
Comment:comment (CVS 1188)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fa55c9861e1cc372a36958383a86895dc311bb4b
User & Date: jplyon 2004-01-19 04:52:29
Context
2004-01-19
04:53
coment typo (CVS 1189) check-in: 8210b2d8 user: jplyon tags: trunk
04:52
comment (CVS 1188) check-in: fa55c986 user: jplyon tags: trunk
2004-01-17
01:16
Do not use strcpy() on overlapping buffers. (CVS 1187) check-in: ed6bd2eb user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pragma.c.

     7      7   **    May you do good and not evil.
     8      8   **    May you find forgiveness for yourself and forgive others.
     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         -** $Id: pragma.c,v 1.12 2003/12/16 03:44:48 drh Exp $
           14  +** $Id: pragma.c,v 1.13 2004/01/19 04:52:29 jplyon Exp $
    15     15   */
    16     16   #include "sqliteInt.h"
    17     17   #include <ctype.h>
    18     18   
    19     19   /*
    20     20   ** Interpret the given string as a boolean value.
    21     21   */
................................................................................
    30     30       if( sqliteStrICmp(z,azTrue[i])==0 ) return 1;
    31     31     }
    32     32     return 0;
    33     33   }
    34     34   
    35     35   /*
    36     36   ** Interpret the given string as a safety level.  Return 0 for OFF,
    37         -** 1 for ON or NORMAL and 2 for FULL.
           37  +** 1 for ON or NORMAL and 2 for FULL.  Return 1 for an empty or 
           38  +** unrecognized string argument.
    38     39   **
    39     40   ** Note that the values returned are one less that the values that
    40     41   ** should be passed into sqliteBtreeSetSafetyLevel().  The is done
    41     42   ** to support legacy SQL code.  The safety level used to be boolean
    42     43   ** and older scripts may have used numbers 0 for OFF and 1 for ON.
    43     44   */
    44     45   static int getSafetyLevel(char *z){