From d86edb819ef4d88fa13ae41afdd231731f515a68 Mon Sep 17 00:00:00 2001 From: terrymanu Date: Tue, 19 Sep 2017 15:28:19 +0800 Subject: [PATCH] fix #382 --- RELEASE-NOTES.md | 1 + .../dangdang/ddframe/rdb/sharding/api/rule/ShardingRule.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 6e6dbe5ab859e..315a330308664 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -7,6 +7,7 @@ 1. [ISSUE #370](https://github.com/dangdangdotcom/sharding-jdbc/issues/370) 使用原生自增主键调用getGeneratedKeys出错 1. [ISSUE #375](https://github.com/dangdangdotcom/sharding-jdbc/issues/375) 路由至单节点的分页第二页以后的查询取不到数据 1. [ISSUE #379](https://github.com/dangdangdotcom/sharding-jdbc/issues/379) 使用Mybatis时框架调用Connection.getMetaData()时释放连接不正确 +1. [ISSUE #382](https://github.com/dangdangdotcom/sharding-jdbc/issues/382) 使用完全未配置分片策略的表无法完成查询 ## 1.5.3 diff --git a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/api/rule/ShardingRule.java b/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/api/rule/ShardingRule.java index d5109af926d76..e15931a56aff6 100644 --- a/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/api/rule/ShardingRule.java +++ b/sharding-jdbc-core/src/main/java/com/dangdang/ddframe/rdb/sharding/api/rule/ShardingRule.java @@ -193,7 +193,7 @@ public boolean isAllInDefaultDataSource(final Collection logicTables) { return false; } } - return true; + return !logicTables.isEmpty(); } /**