From d6aa7387bd282d497573fd649e831e7b386aea62 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Sat, 22 Jun 2024 15:39:29 -0700 Subject: [PATCH] Clean up. --- lib/mysql/schema/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql/schema/convert.go b/lib/mysql/schema/convert.go index 50dfb8eb..1eef9775 100644 --- a/lib/mysql/schema/convert.go +++ b/lib/mysql/schema/convert.go @@ -126,7 +126,7 @@ func ConvertValue(value any, colType DataType) (any, error) { } // The first four bytes are the SRID. - if byteOrder := bytes[5]; byteOrder != 1 { + if byteOrder := bytes[4]; byteOrder != 1 { return nil, fmt.Errorf("expected byte order to be 1 (little-endian), byte order is %d", byteOrder) }