From cb7b7cb72ed11ad1caa745589dd5ce0a9c05251a Mon Sep 17 00:00:00 2001 From: anqiansong Date: Tue, 27 Jul 2021 22:13:17 +0800 Subject: [PATCH] fix issue #836 (#849) Co-authored-by: anqiansong --- tools/goctl/model/sql/converter/types.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/goctl/model/sql/converter/types.go b/tools/goctl/model/sql/converter/types.go index 664490d3..d9d405f7 100644 --- a/tools/goctl/model/sql/converter/types.go +++ b/tools/goctl/model/sql/converter/types.go @@ -47,6 +47,10 @@ var commonMysqlDataTypeMap = map[int]string{ parser.Enum: "string", parser.Set: "string", parser.Json: "string", + parser.Blob: "string", + parser.LongBlob: "string", + parser.MediumBlob: "string", + parser.TinyBlob: "string", } var commonMysqlDataTypeMap2 = map[string]string{ @@ -81,6 +85,10 @@ var commonMysqlDataTypeMap2 = map[string]string{ "enum": "string", "set": "string", "json": "string", + "blob": "string", + "longblob": "string", + "mediumblob": "string", + "tinyblob": "string", } // ConvertDataType converts mysql column type into golang type