Skip to content

Commit

Permalink
for apache#601, add jdbc_data.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
haocao committed Aug 2, 2018
1 parent 406e5b1 commit abb27ba
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
import java.util.Map;

public abstract class AbstractShardingJDBCDatabaseAndTableTest extends AbstractSQLTest {

@Before
public void cleanAndInitTable() throws Exception {
importDataSet();
}

@Before
public void initShardingDataSources() throws SQLException {
if (null != shardingDataSource) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
DELETE FROM t_order;
DELETE FROM t_order_item;
DELETE FROM t_config;
INSERT INTO t_order VALUES(1000, 10, 'init');
INSERT INTO t_order VALUES(1001, 10, 'init');
INSERT INTO t_order VALUES(1100, 11, 'init');
INSERT INTO t_order VALUES(1101, 11, 'init');
INSERT INTO t_order_item VALUES(100000, 1000, 10, 'init');
INSERT INTO t_order_item VALUES(100001, 1000, 10, 'init');
INSERT INTO t_order_item VALUES(100100, 1001, 10, 'init');
INSERT INTO t_order_item VALUES(100101, 1001, 10, 'init');
INSERT INTO t_order_item VALUES(110000, 1100, 11, 'init');
INSERT INTO t_order_item VALUES(110001, 1100, 11, 'init');
INSERT INTO t_order_item VALUES(110100, 1101, 11, 'init');
INSERT INTO t_order_item VALUES(110101, 1101, 11, 'init');
INSERT INTO t_config VALUES(1, 'init');

0 comments on commit abb27ba

Please sign in to comment.