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 37a44509b48 fix format example code in parse doc (#20223)
37a44509b48 is described below

commit 37a44509b4865f6236e1e4a2a14572df5e1cf62f
Author: bugbuggoesaway <80324963+bugbuggoesa...@users.noreply.github.com>
AuthorDate: Wed Aug 17 11:57:19 2022 +0800

    fix format example code in parse doc (#20223)
---
 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 88944279d11..4a4bec0ce75 100644
--- a/docs/document/content/reference/sharding/parse.cn.md
+++ b/docs/document/content/reference/sharding/parse.cn.md
@@ -99,8 +99,8 @@ SQLStatement sqlStatement = 
sqlVisitorEngine.visit(parseASTNode);
 
 ```java
 ParseASTNode parseASTNode = parserEngine.parse(sql, useCache);
-SQLVisitorEngine sqlVisitorEngine = new SQLVisitorEngine(sql, "STATEMENT", 
useCache, new Properties());
-SQLStatement sqlStatement = sqlVisitorEngine.visit(parseASTNode);
+SQLVisitorEngine sqlVisitorEngine = new SQLVisitorEngine(sql, "FORMAT", 
useCache, new Properties());
+String result = sqlVisitorEngine.visit(parseASTNode);
 ```
 
 例子:
diff --git a/docs/document/content/reference/sharding/parse.en.md 
b/docs/document/content/reference/sharding/parse.en.md
index 46b3100c894..62d8823e57f 100644
--- a/docs/document/content/reference/sharding/parse.en.md
+++ b/docs/document/content/reference/sharding/parse.en.md
@@ -97,8 +97,8 @@ SQLStatement sqlStatement = 
sqlVisitorEngine.visit(parseASTNode);
 
 ```java
 ParseASTNode parseASTNode = parserEngine.parse(sql, useCache);
-SQLVisitorEngine sqlVisitorEngine = new SQLVisitorEngine(sql, "STATEMENT", 
useCache, new Properties());
-SQLStatement sqlStatement = sqlVisitorEngine.visit(parseASTNode);
+SQLVisitorEngine sqlVisitorEngine = new SQLVisitorEngine(sql, "FORMAT", 
useCache, new Properties());
+String result = sqlVisitorEngine.visit(parseASTNode);
 ```
 
 Example:

Reply via email to