diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java index 124876597f..ad2681a4b6 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/DB2Dialect.java @@ -234,6 +234,11 @@ public class DB2Dialect extends Dialect { return false; } + @Override + public String[] getDropSchemaCommand(String schemaName) { + return new String[] {"drop schema " + schemaName + " restrict"}; + } + @Override public String getSequenceNextValString(String sequenceName) { return "values nextval for " + sequenceName;