Unfortunately there is another bug with Maps
Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
a23bc6e5d9
commit
6bfa2972d4
|
@ -460,7 +460,7 @@ func formatColumnValue(dstDialect dialects.Dialect, d interface{}, col *schemas.
|
||||||
if col.SQLType.IsText() {
|
if col.SQLType.IsText() {
|
||||||
var v string
|
var v string
|
||||||
switch reflect.TypeOf(d).Kind() {
|
switch reflect.TypeOf(d).Kind() {
|
||||||
case reflect.Struct, reflect.Array, reflect.Slice:
|
case reflect.Struct, reflect.Array, reflect.Slice, reflect.Map:
|
||||||
bytes, err := json.DefaultJSONHandler.Marshal(d)
|
bytes, err := json.DefaultJSONHandler.Marshal(d)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
v = fmt.Sprintf("%s", d)
|
v = fmt.Sprintf("%s", d)
|
||||||
|
|
Loading…
Reference in New Issue