[jOOQ/jOOQ#9428] Meta.toString() should call Meta.ddl()

This commit is contained in:
Lukas Eder 2019-10-23 12:39:50 +02:00
parent b59ce7ee90
commit 86ea965ea2
2 changed files with 11 additions and 0 deletions

View File

@ -306,4 +306,9 @@ abstract class AbstractMeta extends AbstractScope implements Meta, Serializable
public /* non-final */ InformationSchema informationSchema() {
return InformationSchemaExport.exportCatalogs(configuration(), getCatalogs());
}
@Override
public String toString() {
return ddl().toString();
}
}

View File

@ -940,4 +940,10 @@ final class MetaImpl extends AbstractMeta {
return DSL.constraint(getName()).unique(getFieldsArray());
}
}
@Override
public String toString() {
// [#9428] Prevent long running toString() calls
return "MetaImpl";
}
}