From e3bf32d1b44d759122a71e04bbf0a5dfd7050c49 Mon Sep 17 00:00:00 2001 From: Andreas Eberhart Date: Wed, 3 Apr 2024 10:28:02 +0200 Subject: [PATCH] fix unit test --- .../src/main/java/org/dashjoin/mapping/AbstractSource.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dashjoin-core/src/main/java/org/dashjoin/mapping/AbstractSource.java b/dashjoin-core/src/main/java/org/dashjoin/mapping/AbstractSource.java index 5d791989e..ac5c5ea7d 100644 --- a/dashjoin-core/src/main/java/org/dashjoin/mapping/AbstractSource.java +++ b/dashjoin-core/src/main/java/org/dashjoin/mapping/AbstractSource.java @@ -180,10 +180,11 @@ AbstractDatabase ddl(AbstractDatabase db, Map>> } } } else { - if ("Delete All".equals(oldData)) + if ("Delete All".equals(oldData)) { if (db.tables.get(table.getKey()) == null) throw new Exception("Table does not exist: " + table.getKey()); - db.delete(db.tables.get(table.getKey())); + db.delete(db.tables.get(table.getKey())); + } } } } finally {