HHH-14203 DB2 requires the restrict keyword to drop the schema

The 'restrict' keyword is required on DB2.
This commit is contained in:
Gavin King 2020-09-03 11:40:41 +02:00 committed by Sanne Grinovero
parent 94b819e70c
commit c4ee4b1033
1 changed files with 5 additions and 0 deletions

View File

@ -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;