2
0

Refactor format code choosing

This commit is contained in:
Jack Christensen
2019-08-25 00:38:50 -05:00
parent 8f080dcbb2
commit 169632e028
5 changed files with 19 additions and 43 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ func (r *Rows) Columns() []string {
// ColumnTypeDatabaseTypeName return the database system type name.
func (r *Rows) ColumnTypeDatabaseTypeName(index int) string {
if dt, ok := r.conn.conn.ConnInfo.DataTypeForOID(uint32(r.rows.FieldDescriptions()[index].DataTypeOID)); ok {
if dt, ok := r.conn.conn.ConnInfo.DataTypeForOID(r.rows.FieldDescriptions()[index].DataTypeOID); ok {
return strings.ToUpper(dt.Name)
}