Skip to content

Commit

Permalink
fix #436
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 16, 2017
1 parent 2a89cc1 commit 91d7961
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## 2.0.0.M3

### 缺陷修正

1. [ISSUE #436](https://github.com/shardingjdbc/sharding-jdbc/issues/436) 读写分离多从库配置RoundRobin算法并使用MyBatis时,只能路由到同一从库

## 2.0.0.M2

### 里程碑
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public Collection<Connection> getConnections(final SQLType sqlType) throws SQLEx

@Override
public DatabaseMetaData getMetaData() throws SQLException {
if (!getCachedConnections().isEmpty()) {
return getCachedConnections().values().iterator().next().getMetaData();
}
return getConnections(null == cachedSQLType ? SQLType.DML : cachedSQLType).iterator().next().getMetaData();
}

Expand Down

0 comments on commit 91d7961

Please sign in to comment.