sql: update format_type
to handle user defined types
#53704
Merged
format_type
to handle user defined types
#53704