From d5d7391cd6210fee85e38723ebdd48b30afc2e6c Mon Sep 17 00:00:00 2001 From: haocao Date: Tue, 9 Jan 2018 19:39:53 +0800 Subject: [PATCH] For #529. --- .../core/yaml/sharding/YamlShardingIntegrateTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sharding-jdbc-core/src/test/java/io/shardingjdbc/core/yaml/sharding/YamlShardingIntegrateTest.java b/sharding-jdbc-core/src/test/java/io/shardingjdbc/core/yaml/sharding/YamlShardingIntegrateTest.java index 8e7baf3adc760..3d3a6ab4ccca4 100644 --- a/sharding-jdbc-core/src/test/java/io/shardingjdbc/core/yaml/sharding/YamlShardingIntegrateTest.java +++ b/sharding-jdbc-core/src/test/java/io/shardingjdbc/core/yaml/sharding/YamlShardingIntegrateTest.java @@ -93,8 +93,7 @@ public DataSource apply(final String key) { try (Connection conn = dataSource.getConnection(); Statement stm = conn.createStatement()) { stm.execute(String.format("INSERT INTO t_order(user_id,status) values(%d, %s)", 10, "'insert'")); - stm.executeQuery("SELECT * FROM t_order"); - stm.executeQuery("SELECT * FROM t_order_item"); + stm.executeQuery("SELECT o.*, i.* FROM T_order o JOIN T_order_item i ON o.order_id = i.order_id"); stm.executeQuery("SELECT * FROM config"); } }