@@ -671,13 +671,13 @@ func TestSchemaToFields(t *testing.T) {
671
671
{Name : "text" , Type : query .Type_TEXT , Charset : uint32 (sql .CharacterSet_utf8mb4 ), ColumnLength : 262_140 },
672
672
{Name : "mediumtext" , Type : query .Type_TEXT , Charset : uint32 (sql .CharacterSet_utf8mb4 ), ColumnLength : 67_108_860 },
673
673
{Name : "longtext" , Type : query .Type_TEXT , Charset : uint32 (sql .CharacterSet_utf8mb4 ), ColumnLength : 4_294_967_295 },
674
- {Name : "json" , Type : query .Type_JSON , Charset : uint32 ( sql . CharacterSet_utf8mb4 ) , ColumnLength : 4_294_967_295 },
674
+ {Name : "json" , Type : query .Type_JSON , Charset : mysql . CharacterSetBinary , ColumnLength : 4_294_967_295 },
675
675
676
676
// Geometry Types
677
- {Name : "geometry" , Type : query .Type_GEOMETRY , Charset : uint32 ( sql . CharacterSet_utf8mb4 ) , ColumnLength : 4_294_967_295 },
678
- {Name : "point" , Type : query .Type_GEOMETRY , Charset : uint32 ( sql . CharacterSet_utf8mb4 ) , ColumnLength : 4_294_967_295 },
679
- {Name : "polygon" , Type : query .Type_GEOMETRY , Charset : uint32 ( sql . CharacterSet_utf8mb4 ) , ColumnLength : 4_294_967_295 },
680
- {Name : "linestring" , Type : query .Type_GEOMETRY , Charset : uint32 ( sql . CharacterSet_utf8mb4 ) , ColumnLength : 4_294_967_295 },
677
+ {Name : "geometry" , Type : query .Type_GEOMETRY , Charset : mysql . CharacterSetBinary , ColumnLength : 4_294_967_295 },
678
+ {Name : "point" , Type : query .Type_GEOMETRY , Charset : mysql . CharacterSetBinary , ColumnLength : 4_294_967_295 },
679
+ {Name : "polygon" , Type : query .Type_GEOMETRY , Charset : mysql . CharacterSetBinary , ColumnLength : 4_294_967_295 },
680
+ {Name : "linestring" , Type : query .Type_GEOMETRY , Charset : mysql . CharacterSetBinary , ColumnLength : 4_294_967_295 },
681
681
682
682
// Integer Types
683
683
{Name : "uint8" , Type : query .Type_UINT8 , Charset : uint32 (sql .CharacterSet_utf8mb4 ), ColumnLength : 3 },
0 commit comments