From 3dce57e7938d22d87d78fac2cce08e28f2c4abb3 Mon Sep 17 00:00:00 2001 From: Liujian Date: Wed, 15 Oct 2014 10:48:50 +0800 Subject: [PATCH] Modified mysql blob type. --- g_hproseappcode.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/g_hproseappcode.go b/g_hproseappcode.go index 1bd498f..d1e369e 100644 --- a/g_hproseappcode.go +++ b/g_hproseappcode.go @@ -51,10 +51,10 @@ var typeMappingMysqlOfRpc = map[string]string{ "mediumtext": "string", "text": "string", "longtext": "string", - "blob": "byte", // blob as byte - "tinyblob": "byte", - "mediumblob": "byte", - "longblob": "byte", + "blob": "[]byte", // blob as byte + "tinyblob": "[]byte", + "mediumblob": "[]byte", + "longblob": "[]byte", "date": "time.Time", // time "datetime": "time.Time", "timestamp": "time.Time", @@ -89,7 +89,7 @@ var typeMappingPostgresOfRpc = map[string]string{ "decimal": "float64", "numeric": "float64", "money": "float64", // money - "bytea": "byte", // binary + "bytea": "[]byte", // binary "tsvector": "string", // fulltext "ARRAY": "string", // array "USER-DEFINED": "string", // user defined