Hstore.Set accepts map[string]Text
This commit is contained in:
@@ -50,6 +50,8 @@ func (dst *Hstore) Set(src interface{}) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*dst = Hstore{Map: m, Status: Present}
|
*dst = Hstore{Map: m, Status: Present}
|
||||||
|
case map[string]Text:
|
||||||
|
*dst = Hstore{Map: value, Status: Present}
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("cannot convert %v to Hstore", src)
|
return fmt.Errorf("cannot convert %v to Hstore", src)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user