From b98f608a074ceafe16eced10e4404fb6609d52a4 Mon Sep 17 00:00:00 2001 From: Avi Deitcher Date: Tue, 18 Jun 2024 23:17:38 -0700 Subject: [PATCH] include uint16 and int16 in table types Signed-off-by: Avi Deitcher --- pkg/database/mysql/table.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/database/mysql/table.go b/pkg/database/mysql/table.go index 803a4aa8..9a362d22 100644 --- a/pkg/database/mysql/table.go +++ b/pkg/database/mysql/table.go @@ -231,6 +231,8 @@ func (table *baseTable) RowBuffer() *bytes.Buffer { fmt.Fprintf(&b, "%d", *s) case *int8: fmt.Fprintf(&b, "%d", *s) + case *int16: + fmt.Fprintf(&b, "%d", *s) case *int32: fmt.Fprintf(&b, "%d", *s) case *int64: @@ -239,6 +241,8 @@ func (table *baseTable) RowBuffer() *bytes.Buffer { fmt.Fprintf(&b, "%d", *s) case *uint8: fmt.Fprintf(&b, "%d", *s) + case *uint16: + fmt.Fprintf(&b, "%d", *s) case *uint32: fmt.Fprintf(&b, "%d", *s) case *uint64: