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"); } }