Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
aeberhart committed Apr 3, 2024
1 parent a042f54 commit e3bf32d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,11 @@ AbstractDatabase ddl(AbstractDatabase db, Map<String, List<Map<String, Object>>>
}
}
} 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 {
Expand Down

0 comments on commit e3bf32d

Please sign in to comment.