diff options
author | drh <drh@noemail.net> | 2008-08-08 14:19:41 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-08-08 14:19:41 +0000 |
commit | 200a81dcb51bb5c02625a4fe6b6dabbf630a069c (patch) | |
tree | 0c8d6f54b2570e89025eda735ddcb9de11e8c473 /src/tokenize.c | |
parent | a33cb5f776c294441ffa4982197a3fe04ea92e03 (diff) | |
download | sqlite-200a81dcb51bb5c02625a4fe6b6dabbf630a069c.tar.gz sqlite-200a81dcb51bb5c02625a4fe6b6dabbf630a069c.zip |
Disallow the ON CONFLICT clause on CHECK constraints. The syntax used to be
allowed but never worked, so this should not present compatibility problems.
Other internal grammar simplifications. (CVS 5546)
FossilOrigin-Name: 4cedc641ed39982ae8cbb9200aa1e2f37c878b73
Diffstat (limited to 'src/tokenize.c')
-rw-r--r-- | src/tokenize.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/tokenize.c b/src/tokenize.c index eaca6b53b..3e5bd9de9 100644 --- a/src/tokenize.c +++ b/src/tokenize.c @@ -15,7 +15,7 @@ ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** -** $Id: tokenize.c,v 1.149 2008/08/07 13:05:36 drh Exp $ +** $Id: tokenize.c,v 1.150 2008/08/08 14:19:41 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -131,7 +131,7 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){ case '-': { if( z[1]=='-' ){ for(i=2; (c=z[i])!=0 && c!='\n'; i++){} - *tokenType = TK_COMMENT; + *tokenType = TK_SPACE; return i; } *tokenType = TK_MINUS; @@ -164,7 +164,7 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){ } for(i=3, c=z[2]; (c!='*' || z[i]!='/') && (c=z[i])!=0; i++){} if( c ) i++; - *tokenType = TK_COMMENT; + *tokenType = TK_SPACE; return i; } case '%': { @@ -420,8 +420,7 @@ int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){ break; } switch( tokenType ){ - case TK_SPACE: - case TK_COMMENT: { + case TK_SPACE: { if( db->u1.isInterrupted ){ pParse->rc = SQLITE_INTERRUPT; sqlite3SetString(pzErrMsg, db, "interrupt"); |