mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix unmaarshal of double pointer (#47586)
* Fix unmaarshal of double pointer * update sdk version
This commit is contained in:
@@ -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