Skip to content

Commit

Permalink
Modification to tables deletion on tests according to new h2 version …
Browse files Browse the repository at this point in the history
…"delete restrict" rules
  • Loading branch information
angelo.andreussi authored and Coduz committed Sep 13, 2023
1 parent 236aae2 commit 702dc6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void dropAll() throws SQLException {
ResultSet sqlResults = connection.getMetaData().getTables(null, null, "%", types);

while (sqlResults.next()) {
String sqlStatement = String.format("DROP TABLE %s", sqlResults.getString("TABLE_NAME").toUpperCase());
String sqlStatement = String.format("DROP TABLE %s CASCADE", sqlResults.getString("TABLE_NAME").toUpperCase());
try (PreparedStatement preparedStatement = connection.prepareStatement(sqlStatement)) {
preparedStatement.execute();
}
Expand Down

0 comments on commit 702dc6a

Please sign in to comment.