Skip to content

Commit

Permalink
fix TARGET HINT
Browse files Browse the repository at this point in the history
  • Loading branch information
junwen12221 committed Jun 17, 2021
1 parent 248ba8d commit e716c69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions example/src/test/java/io/mycat/hint/HintTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public void testMasterSlave() throws Exception {
hasData = !JdbcUtils.executeQuery(mycatConnection, "/*+MYCAT:TARGET(dw1)*/ select 1 from db1.m limit 1", Collections.emptyList()).isEmpty();
Assert.assertTrue(hasData);

//bug
// hasData = !JdbcUtils.executeQuery(mycatConnection, "/*+MYCAT:TARGET(dw1,dr1)*/ select 1 from db1.m limit 1", Collections.emptyList()).isEmpty();
// Assert.assertTrue(hasData);

hasData = !JdbcUtils.executeQuery(mycatConnection, "/*+MYCAT:TARGET(dw1,dr1)*/ select 1 from db1.m limit 1", Collections.emptyList()).isEmpty();
Assert.assertTrue(hasData);


System.out.println();
Expand Down
2 changes: 1 addition & 1 deletion mycat2/src/main/java/io/mycat/commands/ReceiverImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public Future<Void> execute(ExplainDetail detail) {
.map(row -> new MysqlRow(row)));
}
}
return sendResultSet(Observable.merge(outputs));
return sendResultSet(Observable.concat(outputs));
}
case UPDATE:
case INSERT:
Expand Down

0 comments on commit e716c69

Please sign in to comment.