Add comment for FormatCodeForOID

query-exec-mode
Jack Christensen 2022-03-05 08:56:41 -06:00
parent 45a8b00271
commit ec8f7c4204
1 changed files with 2 additions and 0 deletions

View File

@ -422,6 +422,8 @@ func (m *Map) TypeForValue(v interface{}) (*Type, bool) {
return dt, ok
}
// FormatCodeForOID returns the preferred format code for type oid. If the type is not registered it returns the text
// format code.
func (m *Map) FormatCodeForOID(oid uint32) int16 {
fc, ok := m.oidToFormatCode[oid]
if ok {