Skip to content

Commit

Permalink
Merge pull request #15 from jamf/JPXI-4032-database-backup-json
Browse files Browse the repository at this point in the history
Jpxi 4032 database backup json
  • Loading branch information
brazeaudavid authored Nov 12, 2021
2 parents df98ebb + add67bf commit ec17275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type metaData struct {

const (
// Version of this plugin for easy reference
Version = "0.6.0"
Version = "0.7.0"

defaultMaxAllowedPacket = 4194304
)
Expand Down Expand Up @@ -403,7 +403,7 @@ func reflectColumnType(tp *sql.ColumnType) reflect.Type {
switch tp.DatabaseTypeName() {
case "BLOB", "BINARY":
return reflect.TypeOf(sql.RawBytes{})
case "VARCHAR", "TEXT", "DECIMAL":
case "VARCHAR", "TEXT", "DECIMAL", "JSON":
return reflect.TypeOf(sql.NullString{})
case "BIGINT", "TINYINT", "INT":
return reflect.TypeOf(sql.NullInt64{})
Expand Down

0 comments on commit ec17275

Please sign in to comment.