* Fix unmaarshal of double pointer
* update sdk version
(cherry picked from commit 0bf889e058)
Co-authored-by: ying-jeanne <74549700+ying-jeanne@users.noreply.github.com>
This commit is contained in:
co-authored by
ying-jeanne
parent
be54ab63cb
commit
bd76bd0d0e
@@ -56,9 +56,9 @@ func (s Settings) Value() (driver.Value, error) {
|
||||
func (s *Settings) Scan(value interface{}) error {
|
||||
switch v := value.(type) {
|
||||
case string:
|
||||
return json.Unmarshal([]byte(v), &s)
|
||||
return json.Unmarshal([]byte(v), s)
|
||||
case []uint8:
|
||||
return json.Unmarshal(v, &s)
|
||||
return json.Unmarshal(v, s)
|
||||
default:
|
||||
return fmt.Errorf("type assertion on scan failed: got %T", value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user