Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | bug fix (CVS 130) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | e8882dac2306afbc7bffdaa93c9a7fc4 |
User & Date: | drh 2000-08-09 17:17:25 |
Context
2000-08-17
| ||
09:50 | allow readonly access when write permission denied (CVS 131) check-in: 897b4bc0 user: drh tags: trunk | |
2000-08-09
| ||
17:17 | bug fix (CVS 130) check-in: e8882dac user: drh tags: trunk | |
2000-08-08
| ||
20:19 | Add pattern matching to the .table command (CVS 129) check-in: 2b3511ec user: drh tags: trunk | |
Changes
Changes to src/tokenize.c.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ... 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 ... 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
************************************************************************* ** An tokenizer for SQL ** ** This file contains C code that splits an SQL input string up into ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** ** $Id: tokenize.c,v 1.12 2000/06/16 20:51:26 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> #include <stdlib.h> /* ** All the keywords of the SQL language are stored as in a hash ................................................................................ ** Return the length of the token that begins at z[0]. Return ** -1 if the token is (or might be) incomplete. Store the token ** type in *tokenType before returning. */ int sqliteGetToken(const char *z, int *tokenType){ int i; switch( *z ){ case ' ': case '\t': case '\n': case '\f': { for(i=1; z[i] && isspace(z[i]); i++){} *tokenType = TK_SPACE; return i; } case '-': { if( z[1]==0 ) return -1; if( z[1]=='-' ){ ................................................................................ trace = 0; sqliteParserTrace(trace, "parser: "); }else if( sqliteStrNICmp(z,"--vdbe-trace-on--",17)==0 ){ pParse->db->flags |= SQLITE_VdbeTrace; }else if( sqliteStrNICmp(z,"--vdbe-trace-off--", 18)==0 ){ pParse->db->flags &= ~SQLITE_VdbeTrace; #ifdef MEMORY_DEBUG }else if( sqliteStrNICmp(z,"--malloc-file=",14)==0 ){ sqlite_iMallocFail = atoi(&z[14]); }else if( sqliteStrNICmp(z,"--malloc-stats--", 16)==0 ){ if( pParse->xCallback ){ static char *azName[4] = {"malloc", "free", "to_fail", 0 }; char *azArg[4]; char zVal[3][30]; sprintf(zVal[0],"%d", sqlite_nMalloc); |
| | | |
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 ... 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 ... 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
************************************************************************* ** An tokenizer for SQL ** ** This file contains C code that splits an SQL input string up into ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** ** $Id: tokenize.c,v 1.13 2000/08/09 17:17:25 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> #include <stdlib.h> /* ** All the keywords of the SQL language are stored as in a hash ................................................................................ ** Return the length of the token that begins at z[0]. Return ** -1 if the token is (or might be) incomplete. Store the token ** type in *tokenType before returning. */ int sqliteGetToken(const char *z, int *tokenType){ int i; switch( *z ){ case ' ': case '\t': case '\n': case '\f': case '\r': { for(i=1; z[i] && isspace(z[i]); i++){} *tokenType = TK_SPACE; return i; } case '-': { if( z[1]==0 ) return -1; if( z[1]=='-' ){ ................................................................................ trace = 0; sqliteParserTrace(trace, "parser: "); }else if( sqliteStrNICmp(z,"--vdbe-trace-on--",17)==0 ){ pParse->db->flags |= SQLITE_VdbeTrace; }else if( sqliteStrNICmp(z,"--vdbe-trace-off--", 18)==0 ){ pParse->db->flags &= ~SQLITE_VdbeTrace; #ifdef MEMORY_DEBUG }else if( sqliteStrNICmp(z,"--malloc-fail=",14)==0 ){ sqlite_iMallocFail = atoi(&z[14]); }else if( sqliteStrNICmp(z,"--malloc-stats--", 16)==0 ){ if( pParse->xCallback ){ static char *azName[4] = {"malloc", "free", "to_fail", 0 }; char *azArg[4]; char zVal[3][30]; sprintf(zVal[0],"%d", sqlite_nMalloc); |
Changes to www/changes.tcl.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
} proc chng {date desc} { puts "<DT><B>$date</B></DT>" puts "<DD><P><UL>$desc</UL></P></DD>" } chng {2000 Aug 8} { <li>Added pattern matching to the ".table" command in the "sqlite" command shell.</li> } chng {2000 Aug 4} { |
> > > > |
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
} proc chng {date desc} { puts "<DT><B>$date</B></DT>" puts "<DD><P><UL>$desc</UL></P></DD>" } chng {2000 Aug 9} { <li>Treat carriage returns as white space.</li> } chng {2000 Aug 8} { <li>Added pattern matching to the ".table" command in the "sqlite" command shell.</li> } chng {2000 Aug 4} { |