cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

sql/types: do not panic formatting unhydrated UDTs

Open ajwerner opened this issue 3 years ago • 4 comments

Before this patch, if a bug resulted in a UDT's types.T getting to a point where it was being formatted to a string without being hydrated, a panic would occur. Now the type is formatted into an OIDTypeReference which is slightly less pretty, but is valid.

Relates to #85447

Release note: None

ajwerner avatar Aug 11 '22 02:08 ajwerner

This change is Reviewable

cockroach-teamcity avatar Aug 11 '22 02:08 cockroach-teamcity

TFTR!

bors r+

ajwerner avatar Aug 11 '22 03:08 ajwerner

Build failed (retrying...):

craig[bot] avatar Aug 11 '22 07:08 craig[bot]

Build failed (retrying...):

craig[bot] avatar Aug 11 '22 10:08 craig[bot]

Build succeeded:

craig[bot] avatar Aug 11 '22 15:08 craig[bot]