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 67bc3ba6378 Fix Parse Engine doc (#25646)
67bc3ba6378 is described below

commit 67bc3ba637856b14fb49906bc3aecff153447fe7
Author: mghio <[email protected]>
AuthorDate: Sat May 13 23:42:07 2023 +0800

    Fix Parse Engine doc (#25646)
---
 docs/document/content/reference/sharding/parse.cn.md | 4 ++--
 docs/document/content/reference/sharding/parse.en.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/document/content/reference/sharding/parse.cn.md 
b/docs/document/content/reference/sharding/parse.cn.md
index 3c5aadb4534..8c56b9dd5ed 100644
--- a/docs/document/content/reference/sharding/parse.cn.md
+++ b/docs/document/content/reference/sharding/parse.cn.md
@@ -82,7 +82,7 @@ ShardingSphere 的 SQL 解析器经历了 3 代产品的更新迭代。
 
 ```java
 CacheOption cacheOption = new CacheOption(128, 1024L);
-SQLParserEngine parserEngine = new SQLParserEngine(sql, cacheOption);
+SQLParserEngine parserEngine = new SQLParserEngine("MySQL", cacheOption);
 ParseASTNode parseASTNode = parserEngine.parse(sql, useCache); 
 ```
 
@@ -90,7 +90,7 @@ ParseASTNode parseASTNode = parserEngine.parse(sql, useCache);
 
 ```java
 CacheOption cacheOption = new CacheOption(128, 1024L);
-SQLParserEngine parserEngine = new SQLParserEngine(sql, cacheOption);
+SQLParserEngine parserEngine = new SQLParserEngine("MySQL", cacheOption);
 ParseASTNode parseASTNode = parserEngine.parse(sql, useCache);
 SQLVisitorEngine sqlVisitorEngine = new SQLVisitorEngine(sql, "STATEMENT", 
useCache, new Properties());
 SQLStatement sqlStatement = sqlVisitorEngine.visit(parseASTNode);
diff --git a/docs/document/content/reference/sharding/parse.en.md 
b/docs/document/content/reference/sharding/parse.en.md
index 7eb7e81c81f..2e99cb655ca 100644
--- a/docs/document/content/reference/sharding/parse.en.md
+++ b/docs/document/content/reference/sharding/parse.en.md
@@ -79,7 +79,7 @@ Since V5.0.x, the architecture of the parsing engine has been 
restructured and a
 
 ```java
 CacheOption cacheOption = new CacheOption(128, 1024L);
-SQLParserEngine parserEngine = new SQLParserEngine(sql, cacheOption);
+SQLParserEngine parserEngine = new SQLParserEngine("MySQL", cacheOption);
 ParseASTNode parseASTNode = parserEngine.parse(sql, useCache);
 ```
 
@@ -87,7 +87,7 @@ ParseASTNode parseASTNode = parserEngine.parse(sql, useCache);
 
 ```java
 CacheOption cacheOption = new CacheOption(128, 1024L);
-SQLParserEngine parserEngine = new SQLParserEngine(sql, cacheOption);
+SQLParserEngine parserEngine = new SQLParserEngine("MySQL", cacheOption);
 ParseASTNode parseASTNode = parserEngine.parse(sql, useCache);
 SQLVisitorEngine sqlVisitorEngine = new SQLVisitorEngine(sql, "STATEMENT", 
useCache, new Properties());
 SQLStatement sqlStatement = sqlVisitorEngine.visit(parseASTNode);

Reply via email to