[jOOQ/jOOQ#9428] Meta.toString() should call Meta.ddl()
This commit is contained in:
parent
b59ce7ee90
commit
86ea965ea2
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user