Skip to content

Commit 2f42179

Browse files
authored
mysql field: expose API to modify field vale (#960)
1 parent a778272 commit 2f42179

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mysql/field.go

+8
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ const (
4444
FieldValueTypeString
4545
)
4646

47+
func NewFieldValue(t FieldValueType, v uint64, str []byte) FieldValue {
48+
return FieldValue{
49+
Type: t,
50+
value: v,
51+
str: str,
52+
}
53+
}
54+
4755
func (f *Field) Parse(p FieldData) (err error) {
4856
f.Data = p
4957

0 commit comments

Comments
 (0)