Skip to content

Commit

Permalink
Merge pull request #30 from erenakpinar/master
Browse files Browse the repository at this point in the history
Add json type for mysql
  • Loading branch information
Shelnutt2 authored Nov 8, 2019
2 parents dc0ba3d + 47e3fd9 commit 0c86a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func mysqlTypeToGoType(mysqlType string, nullable bool, gureguTypes bool) string
return sqlNullInt
}
return golangInt64
case "char", "enum", "varchar", "longtext", "mediumtext", "text", "tinytext":
case "char", "enum", "varchar", "longtext", "mediumtext", "text", "tinytext", "json":
if nullable {
if gureguTypes {
return gureguNullString
Expand Down

0 comments on commit 0c86a0f

Please sign in to comment.