mirror of
https://github.com/beego/bee.git
synced 2024-11-21 23:50:54 +00:00
Added MySQL year data type
This commit is contained in:
parent
9e4a43f08a
commit
b4bee5cceb
@ -101,6 +101,7 @@ var typeMappingMysql = map[string]string{
|
|||||||
"decimal": "float64",
|
"decimal": "float64",
|
||||||
"binary": "string", // binary
|
"binary": "string", // binary
|
||||||
"varbinary": "string",
|
"varbinary": "string",
|
||||||
|
"year": "int16",
|
||||||
}
|
}
|
||||||
|
|
||||||
// typeMappingPostgres maps SQL data type to corresponding Go data type
|
// typeMappingPostgres maps SQL data type to corresponding Go data type
|
||||||
|
Loading…
Reference in New Issue
Block a user