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

zhaojinchao 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 b27132f810e Update UnsupportedCommandException (#20920)
b27132f810e is described below

commit b27132f810e7938a896da5b2f8b58f693202fb3a
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Sep 11 17:09:48 2022 +0800

    Update UnsupportedCommandException (#20920)
---
 docs/document/content/user-manual/error-code/sql-error-code.cn.md       | 2 +-
 docs/document/content/user-manual/error-code/sql-error-code.en.md       | 2 +-
 .../proxy/frontend/exception/UnsupportedCommandException.java           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/document/content/user-manual/error-code/sql-error-code.cn.md 
b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
index 9920786bdfb..9854c387900 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.cn.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.cn.md
@@ -175,4 +175,4 @@ SQL 错误码以标准的 SQL State,Vendor Code 和详细错误信息提供,
 | --------- | ----------- | ------ |
 | HY004     | 30000       | Unknown exception: %s |
 | 0A000     | 30001       | Unsupported operation: %s |
-| 42000     | 30002       | Unsupported command: %s |
+| 0A000     | 30002       | Unsupported command: %s |
diff --git a/docs/document/content/user-manual/error-code/sql-error-code.en.md 
b/docs/document/content/user-manual/error-code/sql-error-code.en.md
index a3c62d21e8b..aeea770ebb5 100644
--- a/docs/document/content/user-manual/error-code/sql-error-code.en.md
+++ b/docs/document/content/user-manual/error-code/sql-error-code.en.md
@@ -175,4 +175,4 @@ SQL error codes provide by standard `SQL State`, `Vendor 
Code` and `Reason`, whi
 | --------- | ----------- | ------ |
 | HY004     | 30000       | Unknown exception: %s |
 | 0A000     | 30001       | Unsupported operation: %s |
-| 42000     | 30002       | Unsupported command: %s |
+| 0A000     | 30002       | Unsupported command: %s |
diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/exception/UnsupportedCommandException.java
 
b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/exception/UnsupportedCommandException.java
index cd60c0c4e2c..7c535dffecf 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/exception/UnsupportedCommandException.java
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-core/src/main/java/org/apache/shardingsphere/proxy/frontend/exception/UnsupportedCommandException.java
@@ -28,6 +28,6 @@ public final class UnsupportedCommandException extends 
GenericSQLException {
     private static final long serialVersionUID = 8010680371699936338L;
     
     public UnsupportedCommandException(final String commandType) {
-        super(XOpenSQLState.SYNTAX_ERROR, 2, "Unsupported command: %s", 
commandType);
+        super(XOpenSQLState.FEATURE_NOT_SUPPORTED, 2, "Unsupported command: 
%s", commandType);
     }
 }

Reply via email to