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

jianglongtao 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 0fba9cd9698 Fix DistSQL document (#27475)
0fba9cd9698 is described below

commit 0fba9cd96982da130ffac5bba561f0a80a1ea632
Author: ChenJiaHao <[email protected]>
AuthorDate: Wed Jul 26 14:59:24 2023 +0800

    Fix DistSQL document (#27475)
    
    * Fix shadow's DistSQL document
    
    * Fix shadow's DistSQL document
    
    * Fix transaction's DistSQL document
---
 .../syntax/ral/global-rule/show-transaction-rule.cn.md |  2 +-
 .../rdl/rule-definition/shadow/drop-shadow-rule.cn.md  |  2 +-
 .../rdl/rule-definition/shadow/drop-shadow-rule.en.md  |  2 +-
 .../shadow/show-default-shadow-algorithm.cn.md         | 12 ++++++------
 .../shadow/show-default-shadow-algorithm.en.md         | 18 +++++++++---------
 5 files changed, 18 insertions(+), 18 deletions(-)

diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/global-rule/show-transaction-rule.cn.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/global-rule/show-transaction-rule.cn.md
index 4a6d035d775..70a989a3c45 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/global-rule/show-transaction-rule.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/ral/global-rule/show-transaction-rule.cn.md
@@ -30,7 +30,7 @@ ShowTransactionRule ::=
 
 ### 示例
 
-- 查询权限规则配置
+- 查询事务规则配置
 
 ```sql
 SHOW TRANSACTION RULE;
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.cn.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.cn.md
index 6d241e0aa4f..e0b3cc12959 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.cn.md
@@ -13,7 +13,7 @@ weight = 3
 {{% tab name="语法" %}}
 ```sql
 DropShadowRule ::=
-  'DROP' 'SHADOW' 'TABLE' 'RULE' ifExists? shadowRuleName ('FROM' 
databaseName)?
+  'DROP' 'SHADOW' 'RULE' ifExists? shadowRuleName ('FROM' databaseName)?
 
 ifExists ::=
   'IF' 'EXISTS'
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.en.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.en.md
index 28b27da82d0..1b8af55e2a3 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.en.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rule-definition/shadow/drop-shadow-rule.en.md
@@ -13,7 +13,7 @@ The `DROP SHADOW RULE` syntax is used to drop shadow rule for 
specified database
 {{% tab name="Grammar" %}}
 ```sql
 DropShadowRule ::=
-  'DROP' 'SHADOW' 'TABLE' 'RULE' ifExists? shadowRuleName ('FROM' 
databaseName)?
+  'DROP' 'SHADOW' 'RULE' ifExists? shadowRuleName ('FROM' databaseName)?
 
 ifExists ::=
   'IF' 'EXISTS'
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.cn.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.cn.md
index 61da4230470..ed3b59dbb6e 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.cn.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.cn.md
@@ -13,7 +13,7 @@ weight = 4
 {{% tab name="语法" %}}
 ```sql
 ShowEncryptAlgorithm::=
-  'SHOW' 'DEFAULT' 'SHADOW' 'ALGORITHMS' ('FROM' databaseName)?
+  'SHOW' 'DEFAULT' 'SHADOW' 'ALGORITHM' ('FROM' databaseName)?
 
 databaseName ::=
   identifier
@@ -41,11 +41,11 @@ databaseName ::=
 - 查询指定逻辑库中的默认影子算法
 
 ```sql
-SHOW DEFAULT SHADOW ALGORITHMS FROM shadow_db;
+SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
 ```
 
 ```sql
-mysql> SHOW DEFAULT SHADOW ALGORITHMS FROM shadow_db;
+mysql> SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
 
+-------------------------+-------------+-----------------------------------------+
 | shadow_algorithm_name   | type        | props                                
   |
 
+-------------------------+-------------+-----------------------------------------+
@@ -57,11 +57,11 @@ mysql> SHOW DEFAULT SHADOW ALGORITHMS FROM shadow_db;
 - 查询当前逻辑库中的默认影子算法
 
 ```sql
-SHOW DEFAULT SHADOW ALGORITHMS;
+SHOW DEFAULT SHADOW ALGORITHM;
 ```
 
 ```sql
-mysql> SHOW DEFAULT SHADOW ALGORITHMS;
+mysql> SHOW DEFAULT SHADOW ALGORITHM;
 
+-------------------------+-------------+-----------------------------------------+
 | shadow_algorithm_name   | type        | props                                
   |
 
+-------------------------+-------------+-----------------------------------------+
@@ -73,7 +73,7 @@ mysql> SHOW DEFAULT SHADOW ALGORITHMS;
 
 ### 保留字
 
-`SHOW`、`DEFAULT`、`SHADOW`、`ALGORITHMS`、`FROM`
+`SHOW`、`DEFAULT`、`SHADOW`、`ALGORITHM`、`FROM`
 
 ### 相关链接
 
diff --git 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.en.md
 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.en.md
index 543c0cd4d10..37beadcfb13 100644
--- 
a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.en.md
+++ 
b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/shadow/show-default-shadow-algorithm.en.md
@@ -5,7 +5,7 @@ weight = 4
 
 ### Description
 
-The `SHOW DEFAULT SHADOW ALGORITHM` syntax is used to query default shadow 
algorithms for specified database.
+The `SHOW DEFAULT SHADOW ALGORITHM` syntax is used to query default shadow 
algorithm for specified database.
 
 ### Syntax
 
@@ -13,7 +13,7 @@ The `SHOW DEFAULT SHADOW ALGORITHM` syntax is used to query 
default shadow algor
 {{% tab name="Grammar" %}}
 ```sql
 ShowEncryptAlgorithm::=
-  'SHOW' 'SHADOW' 'ALGORITHMS' ('FROM' databaseName)?
+  'SHOW' 'SHADOW' 'ALGORITHM' ('FROM' databaseName)?
 
 databaseName ::=
   identifier
@@ -38,14 +38,14 @@ databaseName ::=
 
 ### Example
 
-- Query shadow algorithms for specified database.
+- Query default shadow algorithm for specified database.
 
 ```sql
-SHOW DEFAULT SHADOW ALGORITHMS FROM shadow_db;
+SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
 ```
 
 ```sql
-mysql> SHOW DEFAULT SHADOW ALGORITHMS FROM shadow_db;
+mysql> SHOW DEFAULT SHADOW ALGORITHM FROM shadow_db;
 
+-------------------------+-------------+-----------------------------------------+
 | shadow_algorithm_name   | type        | props                                
   |
 
+-------------------------+-------------+-----------------------------------------+
@@ -54,14 +54,14 @@ mysql> SHOW DEFAULT SHADOW ALGORITHMS FROM shadow_db;
 1 row in set (0.00 sec)
 ```
 
-- Query shadow algorithms for current database.
+- Query default shadow algorithm for current database.
 
 ```sql
-SHOW SHADOW ALGORITHMS;
+SHOW SHADOW ALGORITHM;
 ```
 
 ```sql
-mysql> SHOW SHADOW ALGORITHMS;
+mysql> SHOW SHADOW ALGORITHM;
 
+-------------------------+-------------+-----------------------------------------+
 | shadow_algorithm_name   | type        | props                                
   |
 
+-------------------------+-------------+-----------------------------------------+
@@ -72,7 +72,7 @@ mysql> SHOW SHADOW ALGORITHMS;
 
 ### Reserved word
 
-`SHOW`, `DEFAULT`,`SHADOW`, `ALGORITHMS`, `FROM`
+`SHOW`, `DEFAULT`,`SHADOW`, `ALGORITHM`, `FROM`
 
 ### Related links
 

Reply via email to