提交 32a76632 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Do not use custom comparator with native order

上级 644d142c
...@@ -318,12 +318,7 @@ public class ScriptCommand extends ScriptBase { ...@@ -318,12 +318,7 @@ public class ScriptCommand extends ScriptBase {
// Generate CREATE CONSTRAINT ... // Generate CREATE CONSTRAINT ...
final ArrayList<SchemaObject> constraints = db.getAllSchemaObjects( final ArrayList<SchemaObject> constraints = db.getAllSchemaObjects(
DbObject.CONSTRAINT); DbObject.CONSTRAINT);
Collections.sort(constraints, new Comparator<SchemaObject>() { Collections.sort(constraints, null);
@Override
public int compare(SchemaObject c1, SchemaObject c2) {
return ((Constraint) c1).compareTo((Constraint) c2);
}
});
for (SchemaObject obj : constraints) { for (SchemaObject obj : constraints) {
if (excludeSchema(obj.getSchema())) { if (excludeSchema(obj.getSchema())) {
continue; continue;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论