1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 15:10:54 +00:00

Modified mysql blob type.

This commit is contained in:
Liujian 2014-10-15 10:48:50 +08:00
parent f75d8997ef
commit 3dce57e793

View File

@ -51,10 +51,10 @@ var typeMappingMysqlOfRpc = map[string]string{
"mediumtext": "string", "mediumtext": "string",
"text": "string", "text": "string",
"longtext": "string", "longtext": "string",
"blob": "byte", // blob as byte "blob": "[]byte", // blob as byte
"tinyblob": "byte", "tinyblob": "[]byte",
"mediumblob": "byte", "mediumblob": "[]byte",
"longblob": "byte", "longblob": "[]byte",
"date": "time.Time", // time "date": "time.Time", // time
"datetime": "time.Time", "datetime": "time.Time",
"timestamp": "time.Time", "timestamp": "time.Time",
@ -89,7 +89,7 @@ var typeMappingPostgresOfRpc = map[string]string{
"decimal": "float64", "decimal": "float64",
"numeric": "float64", "numeric": "float64",
"money": "float64", // money "money": "float64", // money
"bytea": "byte", // binary "bytea": "[]byte", // binary
"tsvector": "string", // fulltext "tsvector": "string", // fulltext
"ARRAY": "string", // array "ARRAY": "string", // array
"USER-DEFINED": "string", // user defined "USER-DEFINED": "string", // user defined