aboutsummaryrefslogtreecommitdiff
path: root/src/tokenize.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2002-02-23 02:32:10 +0000
committerdrh <drh@noemail.net>2002-02-23 02:32:10 +0000
commita76b5dfca6c12611fb31f054d692204adddeda08 (patch)
tree3ed0fe854bca2fa3735bdc0d76f898eec7de99e4 /src/tokenize.c
parent17f7193434585e87dbfc96efeb69ae0857969030 (diff)
downloadsqlite-a76b5dfca6c12611fb31f054d692204adddeda08.tar.gz
sqlite-a76b5dfca6c12611fb31f054d692204adddeda08.zip
Code to implement CREATE VIEW is in place. A quick smoke test shows that
it works, but there are probably still many bugs. (CVS 387) FossilOrigin-Name: 39fed2df11382b9855d518502a6c2ca200fa66b8
Diffstat (limited to 'src/tokenize.c')
-rw-r--r--src/tokenize.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tokenize.c b/src/tokenize.c
index cd44b1517..a9650d38c 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.37 2002/02/21 12:01:27 drh Exp $
+** $Id: tokenize.c,v 1.38 2002/02/23 02:32:10 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -101,6 +101,7 @@ static Keyword aKeywordTable[] = {
{ "USING", 0, TK_USING, 0 },
{ "VACUUM", 0, TK_VACUUM, 0 },
{ "VALUES", 0, TK_VALUES, 0 },
+ { "VIEW", 0, TK_VIEW, 0 },
{ "WHERE", 0, TK_WHERE, 0 },
};
@@ -419,7 +420,7 @@ int sqliteRunParser(Parse *pParse, const char *zSql, char **pzErrMsg){
break;
}
}
- if( nErr==0 && (db->flags & SQLITE_Interrupt)==0 ){
+ if( zSql[i]==0 ){
sqliteParser(pEngine, 0, pParse->sLastToken, pParse);
if( pParse->zErrMsg && pParse->sErrToken.z ){
sqliteSetNString(pzErrMsg, "near \"", -1,