Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Jun 22, 2024
1 parent 6a50ab7 commit d6aa738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mysql/schema/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit d6aa738

Please sign in to comment.