This is an automated email from the ASF dual-hosted git repository.
panjuan 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 4d85a91 refine preValidate log
new cdce378 Merge pull request #7349 from tuohai666/log
4d85a91 is described below
commit 4d85a913a1cc2ef4ddac8405b48bea66710889cb
Author: Zhang Yonglun <[email protected]>
AuthorDate: Wed Sep 9 16:37:34 2020 +0800
refine preValidate log
---
.../route/engine/validator/impl/ShardingUpdateStatementValidator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/main/java/org/apache/shardingsphere/sharding/route/engine/validator/impl/ShardingUpdateStatementValidator.java
b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/main/java/org/apache/shardingsphere/sharding/route/engine/validator/impl/ShardingUpdateStatementValidator.java
index 8657454..a741e71 100644
---
a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/main/java/org/apache/shardingsphere/sharding/route/engine/validator/impl/ShardingUpdateStatementValidator.java
+++
b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/main/java/org/apache/shardingsphere/sharding/route/engine/validator/impl/ShardingUpdateStatementValidator.java
@@ -67,7 +67,7 @@ public final class ShardingUpdateStatementValidator
implements ShardingStatement
if (shardingColumnSetAssignmentValue.isPresent() &&
shardingValue.isPresent() &&
shardingColumnSetAssignmentValue.get().equals(shardingValue.get())) {
continue;
}
- throw new ShardingSphereException("Can not update sharding
key, logic table: [%s], column: [%s].", tableName, each);
+ throw new ShardingSphereException("Can not update sharding
key, logic table: [%s], column: [%s].", tableName, shardingColumn);
}
}
}