Skip to content

Commit

Permalink
For #529.
Browse files Browse the repository at this point in the history
  • Loading branch information
haocao committed Jan 9, 2018
1 parent 4bb5702 commit d5d7391
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit d5d7391

Please sign in to comment.