Fix Tokens (#102)

* Fix Tokens

* fix

* ci
This commit is contained in:
mrks 2018-10-22 22:05:29 +02:00 committed by GitHub
parent f7bd4ee592
commit a122effd46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1155 additions and 1121 deletions

File diff suppressed because it is too large Load Diff

View File

@ -729,7 +729,7 @@ extern int yylex \
#undef yyTABLES_NAME #undef yyTABLES_NAME
#endif #endif
#line 227 "flex_lexer.l" #line 229 "flex_lexer.l"
#line 735 "flex_lexer.h" #line 735 "flex_lexer.h"

View File

@ -112,6 +112,7 @@ ALTER TOKEN(ALTER)
ARRAY TOKEN(ARRAY) ARRAY TOKEN(ARRAY)
CROSS TOKEN(CROSS) CROSS TOKEN(CROSS)
DELTA TOKEN(DELTA) DELTA TOKEN(DELTA)
FLOAT TOKEN(FLOAT)
GROUP TOKEN(GROUP) GROUP TOKEN(GROUP)
INDEX TOKEN(INDEX) INDEX TOKEN(INDEX)
INNER TOKEN(INNER) INNER TOKEN(INNER)
@ -144,6 +145,7 @@ LEFT TOKEN(LEFT)
LIKE TOKEN(LIKE) LIKE TOKEN(LIKE)
ILIKE TOKEN(ILIKE) ILIKE TOKEN(ILIKE)
LOAD TOKEN(LOAD) LOAD TOKEN(LOAD)
LONG TOKEN(LONG)
NULL TOKEN(NULL) NULL TOKEN(NULL)
PLAN TOKEN(PLAN) PLAN TOKEN(PLAN)
SHOW TOKEN(SHOW) SHOW TOKEN(SHOW)

View File

@ -25,6 +25,7 @@ SELECT a, SUM(b) FROM t2 GROUP BY a HAVING SUM(b) > 100;
CREATE TABLE "table" FROM TBL FILE 'students.tbl' CREATE TABLE "table" FROM TBL FILE 'students.tbl'
CREATE TABLE IF NOT EXISTS "table" FROM TBL FILE 'students.tbl' CREATE TABLE IF NOT EXISTS "table" FROM TBL FILE 'students.tbl'
CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE) CREATE TABLE students (name TEXT, student_number INTEGER, city TEXT, grade DOUBLE)
CREATE TABLE teachers (name VARCHAR(30), student_number LONG, city CHAR(10), grade FLOAT)
# Multiple statements # Multiple statements
CREATE TABLE "table" FROM TBL FILE 'students.tbl'; SELECT * FROM "table"; CREATE TABLE "table" FROM TBL FILE 'students.tbl'; SELECT * FROM "table";
# INSERT # INSERT