From 279b05a0437e1ce4512b346782204214e6370ddd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Spasi=C4=87?= <igor@jodd.org> Date: Fri, 12 Apr 2019 16:46:29 +0200 Subject: [PATCH] fix deleting order in tests --- jodd-db/src/test/java/jodd/db/fixtures/DbHsqldbTestCase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jodd-db/src/test/java/jodd/db/fixtures/DbHsqldbTestCase.java b/jodd-db/src/test/java/jodd/db/fixtures/DbHsqldbTestCase.java index 6e1a4d650..09dc26885 100644 --- a/jodd-db/src/test/java/jodd/db/fixtures/DbHsqldbTestCase.java +++ b/jodd-db/src/test/java/jodd/db/fixtures/DbHsqldbTestCase.java @@ -44,8 +44,9 @@ protected void setupPool(final CoreConnectionPool cp) { @Override protected void initDb(final DbSession session) { - + executeUpdate(session, "drop table BOY if exists"); executeUpdate(session, "drop table GIRL if exists"); + String sql = "create table GIRL (" + "ID integer not null," + "NAME varchar(20) not null," + @@ -54,7 +55,6 @@ protected void initDb(final DbSession session) { ')'; executeUpdate(session, sql); - executeUpdate(session, "drop table BOY if exists"); sql = "create table BOY (" + "ID integer not null," + "GIRL_ID integer null," +