Skip to content

Commit 279b05a

Browse files
committed
fix deleting order in tests
1 parent cc8742b commit 279b05a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jodd-db/src/test/java/jodd/db/fixtures/DbHsqldbTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ protected void setupPool(final CoreConnectionPool cp) {
4444

4545
@Override
4646
protected void initDb(final DbSession session) {
47-
47+
executeUpdate(session, "drop table BOY if exists");
4848
executeUpdate(session, "drop table GIRL if exists");
49+
4950
String sql = "create table GIRL (" +
5051
"ID integer not null," +
5152
"NAME varchar(20) not null," +
@@ -54,7 +55,6 @@ protected void initDb(final DbSession session) {
5455
')';
5556
executeUpdate(session, sql);
5657

57-
executeUpdate(session, "drop table BOY if exists");
5858
sql = "create table BOY (" +
5959
"ID integer not null," +
6060
"GIRL_ID integer null," +

0 commit comments

Comments
 (0)