Merge pull request #443 from cfsalguero/year_type

Added MySQL year data type
This commit is contained in:
astaxie 2017-05-30 13:36:50 +08:00 committed by GitHub
commit 46fc9d75ae
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ var typeMappingMysql = map[string]string{
"decimal": "float64",
"binary": "string", // binary
"varbinary": "string",
"year": "int16",
}
// typeMappingPostgres maps SQL data type to corresponding Go data type