GH-1819: Handle recursive types when describing type in binary mode

This commit is contained in:
Tim Wojtulewicz 2021-11-08 15:19:57 -07:00
parent c190c85bf0
commit e0b116154a
2 changed files with 29 additions and 2 deletions

View file

@ -1326,10 +1326,15 @@ void RecordType::DescribeFields(ODesc* d) const
d->AddCount(types->length());
for ( const auto& type : *types )
{
type->type->Describe(d);
d->SP();
d->Add(type->id);
d->SP();
if ( d->FindType(type->type.get()) )
d->Add("<recursion>");
else
type->type->Describe(d);
d->SP();
}
}
}