فهرست منبع

mysql: fix go vet error

Daniel Lee 8 سال پیش
والد
کامیت
413ee33d5d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      pkg/tsdb/mysql/mysql.go

+ 1 - 1
pkg/tsdb/mysql/mysql.go

@@ -189,7 +189,7 @@ func (e MysqlExecutor) getTypedRowData(types []*sql.ColumnType, rows *core.Rows)
 		case mysql.FieldTypeNameDouble:
 		case mysql.FieldTypeNameDouble:
 			values[i] = new(float64)
 			values[i] = new(float64)
 		default:
 		default:
-			return nil, fmt.Errorf("Database type %s not supported", stype)
+			return nil, fmt.Errorf("Database type %s not supported", stype.DatabaseTypeName())
 		}
 		}
 	}
 	}