diff options
author | danielk1977 <danielk1977@noemail.net> | 2004-11-12 13:42:30 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2004-11-12 13:42:30 +0000 |
commit | 9fd2a9a02854aa0cce1c57491d0935d14172cb36 (patch) | |
tree | 110c52475d179b88f8fdf7944c8d720facb9069d /src/tokenize.c | |
parent | 2958a4e6a550b306c3958cbe0e7a8aa5f011718d (diff) | |
download | sqlite-9fd2a9a02854aa0cce1c57491d0935d14172cb36.tar.gz sqlite-9fd2a9a02854aa0cce1c57491d0935d14172cb36.zip |
Add the "ALTER TABLE xxx RENAME TO yyy" command. (CVS 2092)
FossilOrigin-Name: a1b2cc63e604785bd51e358ff72c485d858752e3
Diffstat (limited to 'src/tokenize.c')
-rw-r--r-- | src/tokenize.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokenize.c b/src/tokenize.c index 9cda93948..5ae661379 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.96 2004/11/12 03:56:15 drh Exp $ +** $Id: tokenize.c,v 1.97 2004/11/12 13:42:31 danielk1977 Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -65,7 +65,7 @@ static const char isIdChar[] = { ** Return the length of the token that begins at z[0]. ** Store the token type in *tokenType before returning. */ -static int sqliteGetToken(const unsigned char *z, int *tokenType){ +int sqlite3GetToken(const unsigned char *z, int *tokenType){ int i, c; switch( *z ){ case ' ': case '\t': case '\n': case '\f': case '\r': { @@ -349,7 +349,7 @@ int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){ assert( i>=0 ); pParse->sLastToken.z = &zSql[i]; assert( pParse->sLastToken.dyn==0 ); - pParse->sLastToken.n = sqliteGetToken((unsigned char*)&zSql[i], &tokenType); + pParse->sLastToken.n = sqlite3GetToken((unsigned char*)&zSql[i],&tokenType); i += pParse->sLastToken.n; switch( tokenType ){ case TK_SPACE: |