Skip to content

Commit 85870c6

Browse files
JPXI-4032 Map MySQL JSON Type To String
Before this was being handled as binary which causes failure on restore.
1 parent df98ebb commit 85870c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ func reflectColumnType(tp *sql.ColumnType) reflect.Type {
403403
switch tp.DatabaseTypeName() {
404404
case "BLOB", "BINARY":
405405
return reflect.TypeOf(sql.RawBytes{})
406-
case "VARCHAR", "TEXT", "DECIMAL":
406+
case "VARCHAR", "TEXT", "DECIMAL", "JSON":
407407
return reflect.TypeOf(sql.NullString{})
408408
case "BIGINT", "TINYINT", "INT":
409409
return reflect.TypeOf(sql.NullInt64{})

0 commit comments

Comments
 (0)