This is an automated email from the ASF dual-hosted git repository.
chengzhang 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 578b073d5ef Refactor UnsupportedEncryptSQLException (#30844)
578b073d5ef is described below
commit 578b073d5efe2a3f1ccb5d6b95d19d92d74aa3d8
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Apr 11 09:21:46 2024 +0800
Refactor UnsupportedEncryptSQLException (#30844)
---
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 +-
.../encrypt/exception/syntax/UnsupportedEncryptSQLException.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 00f0255647e..607c4269961 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
@@ -223,7 +223,7 @@ SQL 错误码以标准的 SQL State,Vendor Code 和详细错误信息提供,
| 21005 | 44000 | Assisted query column of \`%s\` can not be null in
database \`%s\`. |
| 21007 | 44000 | Like query column of \`%s\` can not be null in
database \`%s\`. |
| 21009 | 44000 | Can not find encrypt table: \`%s\`.
|
-| 21041 | 0A000 | The SQL clause \`%s\` is unsupported in encrypt
rule. |
+| 21020 | 0A000 | The SQL clause '%s' is unsupported in encrypt
feature. |
| 21081 | HY004 | \`%s\` column's encryptor name \`%s\` does not
match encrypt algorithm type \`%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 3d7fd00e791..41ac4df94bb 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
@@ -224,7 +224,7 @@ SQL error codes provide by standard `SQL State`, `Vendor
Code` and `Reason`, whi
| 21005 | 44000 | Assisted query column of \`%s\` can not be null in
database \`%s\`. |
| 21007 | 44000 | Like query column of \`%s\` can not be null in
database \`%s\`. |
| 21009 | 44000 | Can not find encrypt table: \`%s\`.
|
-| 21041 | 0A000 | The SQL clause \`%s\` is unsupported in encrypt
rule. |
+| 21020 | 0A000 | The SQL clause '%s' is unsupported in encrypt
feature. |
| 21081 | HY004 | \`%s\` column's encryptor name \`%s\` does not
match encrypt algorithm type \`%s\`. |
### Shadow Database
diff --git
a/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/exception/syntax/UnsupportedEncryptSQLException.java
b/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/exception/syntax/UnsupportedEncryptSQLException.java
index 2287ca2cbbd..7ac5ad123e9 100644
---
a/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/exception/syntax/UnsupportedEncryptSQLException.java
+++
b/features/encrypt/core/src/main/java/org/apache/shardingsphere/encrypt/exception/syntax/UnsupportedEncryptSQLException.java
@@ -28,6 +28,6 @@ public final class UnsupportedEncryptSQLException extends
EncryptSQLException {
private static final long serialVersionUID = 8391663664617661217L;
public UnsupportedEncryptSQLException(final String sqlClause) {
- super(XOpenSQLState.SYNTAX_ERROR, 41, "The SQL clause `%s` is
unsupported in encrypt rule.", sqlClause);
+ super(XOpenSQLState.SYNTAX_ERROR, 20, "The SQL clause '%s' is
unsupported in encrypt feature.", sqlClause);
}
}