/ Check-in [f0a5255d]
Login

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

Overview
Comment:fix a debugging issue (CVS 162)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f0a5255d2657ddcba24353d6d94b0d9c579d8dec
User & Date: drh 2000-10-22 20:39:59
Context
2000-10-23
01:08
remove unnecessary code when NDEBUG is defined (CVS 163) check-in: 738e3e49 user: drh tags: trunk
2000-10-22
20:39
fix a debugging issue (CVS 162) check-in: f0a5255d user: drh tags: trunk
2000-10-19
15:28
fix an HPUX bug (CVS 1709) check-in: 9e91b729 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/tokenize.c.

    23     23   *************************************************************************
    24     24   ** An tokenizer for SQL
    25     25   **
    26     26   ** This file contains C code that splits an SQL input string up into
    27     27   ** individual tokens and sends those tokens one-by-one over to the
    28     28   ** parser for analysis.
    29     29   **
    30         -** $Id: tokenize.c,v 1.14 2000/10/16 22:06:42 drh Exp $
           30  +** $Id: tokenize.c,v 1.15 2000/10/22 20:39:59 drh Exp $
    31     31   */
    32     32   #include "sqliteInt.h"
    33     33   #include <ctype.h>
    34     34   #include <stdlib.h>
    35     35   
    36     36   /*
    37     37   ** All the keywords of the SQL language are stored as in a hash
................................................................................
   316    316     i = 0;
   317    317     sqliteParseInfoReset(pParse);
   318    318     pEngine = sqliteParserAlloc((void*(*)(int))malloc);
   319    319     if( pEngine==0 ){
   320    320       sqliteSetString(pzErrMsg, "out of memory", 0);
   321    321       return 1;
   322    322     }
          323  +#ifndef NDEBUG
   323    324     sqliteParserTrace(trace, "parser: ");
          325  +#endif
   324    326     while( nErr==0 && i>=0 && zSql[i]!=0 ){
   325    327       int tokenType;
   326    328       
   327    329       if( (pParse->db->flags & SQLITE_Interrupt)!=0 ){
   328    330         pParse->rc = SQLITE_INTERRUPT;
   329    331         sqliteSetString(pzErrMsg, "interrupt", 0);
   330    332         break;