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 680d9e1c0d1 Optimize error message of table lock exception (#20737)
680d9e1c0d1 is described below
commit 680d9e1c0d15fb96b0a0f347dcfb8370df0e0937
Author: gin <[email protected]>
AuthorDate: Fri Sep 2 16:26:34 2022 +0800
Optimize error message of table lock exception (#20737)
---
.../shardingsphere/infra/lock/exception/TableLockedException.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/lock/exception/TableLockedException.java
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/lock/exception/TableLockedException.java
index c71c7e1c767..6684d49884c 100644
---
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/lock/exception/TableLockedException.java
+++
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/lock/exception/TableLockedException.java
@@ -27,7 +27,7 @@ public final class TableLockedException extends
ShardingSphereSQLException {
private static final long serialVersionUID = 2622020743612706932L;
- public TableLockedException(final String schemaName, final String
tableName) {
- super(XOpenSQLState.GENERAL_ERROR, 14000, "The table `%s` of schema
`%s` is locked", tableName, schemaName);
+ public TableLockedException(final String databaseName, final String
schemaName, final String tableNames) {
+ super(XOpenSQLState.GENERAL_ERROR, 14000, "The table `%s` of schema
`%s` is locked in database `%s`", tableNames, schemaName, databaseName);
}
}