Skip to content

Commit

Permalink
Merge 68ef055 into 3ea7406
Browse files Browse the repository at this point in the history
  • Loading branch information
jingshanglu committed Aug 15, 2019
2 parents 3ea7406 + 68ef055 commit 62fe62b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ unreservedWord_
| FILE_BLOCK_SIZE | EXTENT_SIZE | INITIAL_SIZE | AUTOEXTEND_SIZE | MAX_SIZE | NODEGROUP
| WAIT | LOGFILE | UNDOFILE | UNDO_BUFFER_SIZE | REDO_BUFFER_SIZE | DEFINITION | ORGANIZATION
| DESCRIPTION | REFERENCE | FOLLOWS | PRECEDES | NAME |CLOSE | OPEN | NEXT | HANDLER | PREV
| IMPORT | CONCURRENT | XML | POSITION
| IMPORT | CONCURRENT | XML | POSITION | SHARE | DUMPFILE
;

schemaName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ replaceSpecification_
;

update
: UPDATE updateSpecification_ tableReferences setAssignmentsClause whereClause?
: UPDATE updateSpecification_ tableReferences setAssignmentsClause whereClause? orderByClause? limitClause?
;

updateSpecification_
Expand Down Expand Up @@ -175,7 +175,7 @@ unionClause_
;

selectClause
: SELECT selectSpecification_* selectItems fromClause? whereClause? groupByClause? havingClause? windowClause_? orderByClause? limitClause?
: SELECT selectSpecification_* selectItems fromClause? whereClause? groupByClause? havingClause? windowClause_? orderByClause? limitClause? selectIntoExpression_? lockClause?
;

selectSpecification_
Expand Down Expand Up @@ -291,3 +291,12 @@ selectLinesInto_
selectFieldsInto_
: TERMINATED BY STRING_ | OPTIONALLY? ENCLOSED BY STRING_ | ESCAPED BY STRING_
;

selectIntoExpression_
: INTO identifier_ (COMMA_ identifier_ )* | INTO DUMPFILE STRING_
| (INTO OUTFILE STRING_ (CHARACTER SET IDENTIFIER_)?((FIELDS | COLUMNS) selectFieldsInto_+)? (LINES selectLinesInto_+)?)
;

lockClause
: FOR UPDATE | LOCK IN SHARE MODE
;
Original file line number Diff line number Diff line change
Expand Up @@ -1199,3 +1199,15 @@ XML
UNDO
: U N D O
;

DUMPFILE
: D U M P F I L E
;

OUTFILE
: O U T F I L E
;

SHARE
: S H A R E
;

0 comments on commit 62fe62b

Please sign in to comment.