This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 0ff2cfc  fix antlr warning (#7828)
0ff2cfc is described below

commit 0ff2cfcc26537fb3b4e5c141e06b7d3431ecff64
Author: JingShang Lu <[email protected]>
AuthorDate: Sun Oct 18 11:25:46 2020 +0800

    fix antlr warning (#7828)
---
 .../src/main/antlr4/imports/mysql/DDLStatement.g4                     | 2 +-
 .../src/main/antlr4/imports/mysql/RLStatement.g4                      | 4 ++--
 .../src/main/antlr4/imports/postgresql/BaseRule.g4                    | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/DDLStatement.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/DDLStatement.g4
index 0140f82..10512b2 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/DDLStatement.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/DDLStatement.g4
@@ -89,7 +89,7 @@ algorithmOption
     ;
 
 lockOption
-    : LOCK EQ_? (DEFAULT | NONE | SHARED | EXCLUSIVE)
+    : LOCK EQ_? (DEFAULT | NONE | 'SHARED' | 'EXCLUSIVE')
     ;
 
 truncateTable
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/RLStatement.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/RLStatement.g4
index e8e241d..8ed1540 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/RLStatement.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/antlr4/imports/mysql/RLStatement.g4
@@ -28,7 +28,7 @@ changeReplicationFilter
     ;
 
 startSlave
-    : START SLAVE threadTypes_? utilOption_? connectionOptions_? 
channelOption_?
+    : START SLAVE threadTypes_? utilOption_? connectionOptions_ channelOption_?
     ;
 
 stopSlave
@@ -56,7 +56,7 @@ resetSlave
     ;
 
 threadTypes_
-    : threadType_*
+    : threadType_+
     ;
 
 threadType_
diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
index e325b83..7e05cb1 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-postgresql/src/main/antlr4/imports/postgresql/BaseRule.g4
@@ -1318,7 +1318,7 @@ dataType
 dataTypeName
     : INT | INT2 | INT4 | INT8 | SMALLINT | INTEGER | BIGINT | DECIMAL | 
NUMERIC | REAL | FLOAT | FLOAT4 | FLOAT8 | DOUBLE PRECISION | SMALLSERIAL | 
SERIAL | BIGSERIAL
     | MONEY | VARCHAR | CHARACTER | CHAR | TEXT | NAME | BYTEA | TIMESTAMP | 
DATE | TIME | INTERVAL | BOOLEAN | ENUM | POINT
-    | LINE | LSEG | BOX | PATH | POLYGON | CIRCLE | CIDR | INET | MACADDR | 
MACADDR8 | BIT | VARBIT | TSVECTOR | TSQUERY | UUID | XML
+    | LINE | LSEG | BOX | PATH | POLYGON | CIRCLE | CIDR | INET | MACADDR | 
MACADDR8 | BIT | VARBIT | TSVECTOR | TSQUERY | XML
     | JSON | INT4RANGE | INT8RANGE | NUMRANGE | TSRANGE | TSTZRANGE | 
DATERANGE | ARRAY | identifier | constDatetime | typeName
     ;
 

Reply via email to