Skip to content

Commit ec17275

Browse files
authored
Merge pull request jamf#15 from jamf/JPXI-4032-database-backup-json
Jpxi 4032 database backup json
2 parents df98ebb + add67bf commit ec17275

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dump.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type metaData struct {
5454

5555
const (
5656
// Version of this plugin for easy reference
57-
Version = "0.6.0"
57+
Version = "0.7.0"
5858

5959
defaultMaxAllowedPacket = 4194304
6060
)
@@ -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)