From 2f4217957dd586f9cc103d469227d02945a45628 Mon Sep 17 00:00:00 2001 From: Anton Popovichenko Date: Sat, 21 Dec 2024 16:01:01 +0100 Subject: [PATCH] mysql field: expose API to modify field vale (#960) --- mysql/field.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mysql/field.go b/mysql/field.go index da83dca2c..23c32d2e4 100644 --- a/mysql/field.go +++ b/mysql/field.go @@ -44,6 +44,14 @@ const ( FieldValueTypeString ) +func NewFieldValue(t FieldValueType, v uint64, str []byte) FieldValue { + return FieldValue{ + Type: t, + value: v, + str: str, + } +} + func (f *Field) Parse(p FieldData) (err error) { f.Data = p