Skip to content

Commit

Permalink
fix wrong update targetname
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed Jun 28, 2021
1 parent b74bdfd commit 02f8227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hbt/src/main/java/io/mycat/vertx/VertxExecuter.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static Future<long[]> runMycatUpdateRel(XaSqlConnection sqlConnection, My
Map<String, String> targetMap = new HashMap<>();
Set<String> uniqueValues = new HashSet<>();
for (SQL sql : reallySqlSet) {
String k = context.resolveDatasourceTargetName(sql.getTarget());
String k = context.resolveDatasourceTargetName(sql.getTarget(),true);
if (uniqueValues.add(k)) {
if (targetMap.put(sql.getTarget(), context.resolveDatasourceTargetName(k,true)) != null) {
throw new IllegalStateException("Duplicate key");
Expand Down

0 comments on commit 02f8227

Please sign in to comment.